Topic-icon Facebook-Login does not work

Active Subscriptions:

None
14 years 6 months ago #15338 by SR89
I've recently purchased and installed JFBConnect on my website. I'm using latest CB and Joomla 1.7.2. But my users can't connect/login with their Facebook-Account on my website. The following error message is shown: "We were unable to retrieve your Facebook account information. Please try again."

I followed the instructions and configured everything right (even the connection with CB). What could be a reason for the error message. What do I have to check?

Kind regards,
SR
The topic has been locked.
Support Specialist
14 years 6 months ago #15348 by alzander
There's a few reasons. The most common is that you have other Facebook extensions installed which are conflicting with JFBConnect's communication with the Facebook servers. The easiest thing to check is open the HTML on your home page (or wherever you login) and search for "all.js" and/or "FB.init". Those are related to the Facebook Javascript library, and each should only appear once on the page. If it's more than that, you'll need to disable inclusion of the Facebook Javascript Library in whatever other extension is doing that.

If you don't know what I'm talking about, post your URL, and we can help you diagnose anything.

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

None
14 years 6 months ago #15390 by SR89
Replied by SR89 on topic Facebook-Login does not work
Dear Alex,

sadly it didn't work. I had implemented a general "Like"-Button on the bottom of my website, but removing it didn't show any effect. Seems like connecting user with their profiles works. I would give you backend-access if that could help anything?

Kind regards,
SR
The topic has been locked.
Support Specialist
14 years 6 months ago #15397 by alzander
The first thing we'd like to do is see the page itself from the front-end. If you could post (or private message) us the URL, that'd be great. Most things can be diagnosed that way. You can PM me by clicking the arrow under my picture (<----) and hitting the mail icon.

If that doesn't work, then we'll access for admin access to investigate further.

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

None
14 years 6 months ago #15419 by SR89
Replied by SR89 on topic Facebook-Login does not work
The domain is www.german-scrolls.de/ , the Facebook-Connect module is on the left side at the bottom of the page.

EDIT: I've noticed another problem. It just works if you logged in at Facebook before. If you are not currently logged in at Facebook (e.g. you clicked Logout after your last session), the pop-up window with the Login form appears and if you fill in your Facebook-Login data, then the pop-up goes blank, only showing this url:
https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f25850e99304df&origin=http%3A%2F%2Fgerman-scrolls.de%2Ff3e1bf69df3555&relation=opener&transport=flash&frame=f36691da0b1486&result=%7B%22session%22%3A%22%7B%5C%22session_key%5C%22%3A%5C%222.AQDR-8U3U_cQL71K.3600.1321318800.1-100002142053136%5C%22%2C%5C%22uid%5C%22%3A%5C%22100002142053136%5C%22%2C%5C%22expires%5C%22%3A1321318800%2C%5C%22secret%5C%22%3A%5C%22OdvkKNXDgVdbgfPhRT5tlg__%5C%22%2C%5C%22access_token%5C%22%3A%5C%22AAACS2GlNUf8BAF5g5mJai4OTYeavW2z3PwqFexza6RZCRJ2voLnGqvyZAdwK7PQL7eGddcHL7U1f4lNzpWmAz1Kutvqkpew5X4IYZBgMZAWgHZAga3NUy%5C%22%2C%5C%22sig%5C%22%3A%5C%22a5cd51ef90eb8ec4acd57630acb35465%5C%22%7D%22%7D

Nothing more happens. Any ideas?
The topic has been locked.
Support Specialist
14 years 6 months ago #15426 by alzander
It's the Like / Send button that you have at the bottom of the page. It's re-including the Facebook Javascript API, which can conflict with JFBConnect because we need to initialize the Facebook library in a very specific way, and calling it again breaks that process.

You can leave the Like button there, but remove the script inclusion of the file 'all.js', or just replace it altogether with {JFBCLike}

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15447 by SR89
Replied by SR89 on topic Facebook-Login does not work
Thank you very much. Now it works like a charm :)

But one thing I don't understand. If connected people sign in with their Facebook-Account, they are redirected to a forum entry. In fact that one:
www.german-scrolls.de/index.php/forum/Ha...grab-Allerheiligstes

I turned redirection off. Why does it do that?

Another thing I noticed: When people like my posts with the JFBContent plug-in the post on their Facebook-Wall links to a random like of the component EasyDiscuss (e.g. www.german-scrolls.de/index.php/discussi...sen-flaeschens-buggy) from my website, but not to the post they actually liked. Why is that?
The topic has been locked.
Support Specialist
14 years 6 months ago #15449 by alzander
For the redirection, check if you have any user or system plugins enabled that may be trying to redirect the user. If not, turn off all caching and see if the problem goes away. If not, turn off SEF URLs and see if that fixes it. Let us know what does, and we'll help you re-enable that setting (just need to know the cause first).

As for specifying the image you want used when the Like is clicked, you need to use Open Graph tags. Open Graph integration in JFBConnect is enabled by default, but you can check the setting in the Social Configuration -> Open Graph tab. Then, all you need to do is add the following tag to your article to specify the image you want used:
{JFBCGraph image=http://site.com/link-to-image.jpg}
It will take Facebook 24-48 hours to update the image for new like's, so if you try right away, you may not see a difference. You can use the debug tool to see what Facebook 'sees' on your page from the Open Graph tags:
developers.facebook.com/tools/debug

You can also use the Open Graph tab in the social configuration area to specify a default image, in case you haven't explicitly set one on a page using the tag above. This is good for using your logo or something, just to make sure some random image isn't shown. To do so, add the following tag into the defaults box:
image=http://site.com/good-default-image.jpg

For more about JFBConnect's Open Graph features, see:
www.sourcecoast.com/jfbconnect/features/...pen-graph-for-joomla

Hope that all helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15454 by SR89
Replied by SR89 on topic Facebook-Login does not work
Thank you for the fast answer. I will try to find the cause for the redirection and report it here.

The other problem has nothing to do with the image displayed, the whole link is wrong. Any ideas on that one?
The topic has been locked.
Support Specialist
14 years 6 months ago #15458 by alzander
Sorry, missed what you were saying.

If you look at the HTML on any of your pages and look for "og:url", that's the URL that Facebook will use in the Like posts. It's defined twice on your pages. The first one, with the correct URL is coming from JFBConnect. The 2nd one with the incorrect URL is coming from something else. You'll need to disable that extension or whatever it is that's adding that bad call.. along with other conflicting og tags.

Hope that helps,
Alex
The topic has been locked.