Topic-icon Facebook login issue

Active Subscriptions:

None
12 years 4 months ago #40918 by Tin
Facebook login issue was created by Tin
I have this error on console when trying to login using facebook buttom: Uncaught TypeError: Object #<Object> has no method 'facebook_onlogin'
URL: clickealo.com/Colombia; any idea why is this happening?
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #40919 by Tin
Replied by Tin on topic Facebook login issue
The topic has been locked.
Support Specialist
12 years 4 months ago #40930 by alzander
Replied by alzander on topic Facebook login issue
There's a few issues on your site that I can see. First, and foremost, the (components/com_jfbconnect/includes/jfbconnect.js) file is very, very out of date. I'm not sure if that's a caching issue or if the new file wasn't written properly during an upgrade. The file that is loading on your page looks to be from JFBConnect v5.0 (or earlier) and will not work with the current v5.2 release.

The next issue is that you have the following code on your page:
<script type="text/javascript">
FB.Event.subscribe('edge.create',
    function(response) {
        alert('You liked the URL: ' + response);
    }
);
</script>
That code is executing before the Javascript library is loaded on the page, and is therefore throwing a Javascript error. I'd recommend removing that code altogether. If there's something you're looking to do when a user Like's a page, let us know. JFBConnect already has some handling for that event.

I hope that helps,
Alex
The topic has been locked.