I've installed the module as per the readme - I had some problems initially but this solution fixed them: http://drupal.org/node/1163054#comment-5239334

This is what I'm doing:
1) I click the "Connect" button on my login page
2) if I am not logged into FB already a FB popup appears asking for FB login details
3) I log into FB
4) nothing happens on my site - if I go to FB in a separate tab I am logged into FB, but I am not logged into my site
5) there is no sign of a new user in /admin/user/user

If in step 2 I am already logged into FB, nothing happens at all and I'm still not logged into my site.

I have tried this in both Firefox and IE with the same results.

CommentFileSizeAuthor
#5 Facebook Connect – repair2.69 KBhonza.havelka

Comments

repto’s picture

Same problem. Any one can help? How do i solve this?

mdowsett’s picture

same problem

mdowsett’s picture

I think Safari doesn't work with it....I just switched to Firefox and it worked flawlessly.

Can others test it?

What can be done to get Safari working?

thoughtcat’s picture

I've used Firefox from the start and it didn't work. Same with IE. Not tried Safari.

honza.havelka’s picture

StatusFileSize
new2.69 KB

It's because of this: "As of December 13th, 2011, the JavaScript SDK now only supports OAuth 2.0 for authentication." (http://developers.facebook.com/docs/reference/javascript/)

The solution for me was following:

  • update PHP SDK to version 3.1.1 – https://github.com/facebook/php-sdk
  • replace function fbconnect_get_fbuid in fbconnect.module with the lines in the attached files
  • replace file fbconnect.js with the attached file

I hope it will be useful for you.

mdowsett’s picture

I already had the fbconnect.module fix in place but I now used your .js fix and now it doesn't work on Firefox either.

I reverted back to the other .js file and it doesn't work (even after clearing cookies, etc) ...so now I'm not sure where to go. It worked once...FF gave me the option to create a new Drupal account or link my FB account to an existing Drupal account and it then created a new Drupal user. Now...no go.

I may have to give up on it.

betovarg’s picture

This did the trick for me. Are you sure you replaced the correct function in the module?

betovarg’s picture

Thanx!!! Are you submitting this fix to the module? it is a must

mdowsett’s picture

...yeah...I'm certain. I took a few days off from trying to fix this and tried again.

No go.

justinmahon’s picture

This worked great for me, thanks for the update! @mdowsett I recommend clearing your site cache. My change would not kick in until I did this. Hopefully that works for you as well.

rich.3po’s picture

Priority: Normal » Critical

The fix in #5 worked for me - massive thank you to #honza.havelka

This needs to be rolled into the module asap, otherwise everyone will be getting this problem. Bumping up to critical

thoughtcat’s picture

This is still not working for me unfortunately.

I followed honza.havelka's instructions in point 5 and have updated his files in the /sites/all/modules/fbconnect folder.

I went to https://developers.facebook.com/docs/reference/php/ and followed the instructions there for downloading php-sdk from https://github.com/facebook/php-sdk/downloads

I have tried uploading the three files from the /src folder to /sites/all/modules/fbconnect and also tried creating a folder within /fbconnect called php-sdk with those files in it. Doing the latter removed the "Connect with Facebook" button from my Drupal login page.

I am still getting the same results that I originally got, in any browser, and after clearing the Drupal cache and my local browser cache.

Please let me know if I'm doing something wrong.

ChrisConolly’s picture

Thoughtcat:

Ok remove the module you have completly, and delete all the files.
Download the latest version from the main project page, and then apply the fixes mentioned in post #5 (changing code in the module file and replacing the .js file)
Download the latest facebook php-sdk from https://github.com/facebook/php-sdk

Here the readme.txt says create a folder called facebook-php-sdk and put the files in there, however I just put the whole lot straight into my fbconnect folder. Maybe try the readme's way and then try mine.

That fixed everything for me. Good luck with yours

snaushads’s picture

Thanks for the steps,

Worked when i DID NOT replace the fbconnect.js file.

Checked on Opera, FF 10

thoughtcat’s picture

Still not working for me I'm afraid. I've tried everything you guys have said. I've even tried the most recent development version (released today) both as it is and with the php-sdk and with the repaired files (in the latter case it broke my site) and nothing works.

Sorry, giving up - client getting fed up of being charged with nothing to show for it :-(

fringedgentian’s picture

Thank you honza.havelka, your posted solution (#5) worked for me also.