Topic-icon Error when sending email on "createLike" function

Active Subscriptions:

None
12 years 11 months ago #33723 by angort
Hi, i enabled sending email to administrator when someone likes something in my webpage, the problem is that some times it will send the email and something it won't, i just check on my console and i found out this problem:

GET clickealo.com/pruebas/index.php?option=c...0-%20Oro%20:%20solo5 403 (Forbidden) mootools-core.js:485
c.Request.Class.send mootools-core.js:485
i.extend.$owner mootools-core.js:141
send mootools-more.js:250
jfbc.ajax jfbconnect.js:741
jfbc.social.like.create jfbconnect.js:423
u.__wrapper all.js:78
(anonymous function) all.js:61
w all.js:28
g.fire all.js:61
k.fireEvent all.js:134
g.extend._fireEventAndInvokeHandler all.js:137
g.extend._onEdgeCreate all.js:137
k all.js:17
g.inform all.js:40
h.extend.fire all.js:128
(anonymous function) all.js:129
la all.js:72
(anonymous function) all.js:71
(anonymous function) all.js:46
(anonymous function) all.js:46

It is something like if it has "no access to index.php". Can you please tell me how can i fix this problem?, it is critical for this app to always send email when someone clicks on like button.

URL: clickealo.com/pruebas, you can recreate this if you go to a product and connect with facebook and likes one of the products.

Hope you can give a hand. Regards
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #33728 by angort
Another problem is that you should do this on chrome browser because firefox or ie won't show facebook "like" iframe on the lightbox, but "connect" button will show it.
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #33730 by angort
I have fixed the browser problem when trying to show like button, just added some css rules, but the sending email problem still can't fix it.
The topic has been locked.
Support Specialist
12 years 11 months ago #33732 by alzander
Not sure why that would be happening. I just tried to follow your directions, but I don't see a Like button anywhere on the page you mention. I do see a comment box. Is that what you are testing with, or can you link to a page where you know there is a Like button we can test with?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #33733 by angort
You should do click over "PARTICIPAR!" green button, after you should be able to see a lightbox with facebook like iframe.
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago - 12 years 11 months ago #33734 by angort
Here's a link where you can find it: clickealo.com/pruebas/index.php?option=c...uemart_category_id=1

If you are not logged in, when clicks over click button, i will ask you first to enter using facebook credentials, then you should do click over green button again so you can see the "like" button on the lightbox

Thank you
Last edit: 12 years 11 months ago by angort.
The topic has been locked.
Support Specialist
12 years 11 months ago #33765 by alzander
Sorry for the delay. It took me a bit to diagnose the problem, but I think I see what it is. In the HTML on your site, you have the following code:
<script type="text/javascript">
FB.Event.subscribe('edge.create',
    function(response) {
        alert('You liked the URL: ' + response);
    }
);
</script>
That is not from JFBConnect and it's causing a Javascript error. JS errors can prevent further execution of Javascript code, and I believe that's stopping our code from properly triggering.

Can you find and remove that code and try again? If it still doesn't work with that code removed, just let me know and I can look again, but that's step number 1.

Thanks,
Alex
The topic has been locked.