Closed (fixed)
Project:
Facebook Connect
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2011 at 21:09 UTC
Updated:
9 Mar 2012 at 23:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
giorgio79 commented+1
Comment #2
n20 commentedsame here:
Comment #3
WhiteX commentedAfter apllying this correction I got the same error as you guys when clicked on the "Connect" button...
Comment #4
euginewm commentedMy patch solves the problem locally. But if facebook not return email, we will get the error again and again.
Comment #5
cogniven commentedI expect that the changing security restrictions of Facebook now prevents dissemination of email addresses. Going to have to change fbconnect to not reference the email address. I've modded my own code to check for the 'email' array key and default it to blank if not present. This forces entry of an email address by the user.
Comment #6
terbs commentedWhew!
What an exhausting bug. I finally figured it out though I think. It's a really easy fix
fbconnect.module, line 998, in theme_fbconnect_login_button. You need to add attribute data-scope="email" to the button
Change line:
to this:
If you need to gather additonal info, use a comma separation after email, for example, you can pull back check-ins too by doing this:
Referenced document: http://developers.facebook.com/docs/guides/web/
Comment #7
likewhoa commented#6 doesn't resolve the problem.
Comment #8
damien_vancouver commented@likewhoa, The patch by aiquandol from #6 does resolve the problem, as it requires e-mail address with new facebook app logins. But... you have to clear out the App from your facebook profile before you will see the change.
The following should stop the error happening:
Now you should be just like a new user coming to your site.
Please try all those steps and see if it goes away for you? I can't make it fail any more (though it did until I did all of the above steps to start over again).
I've rolled Aiquandol's fix from #6 into a proper patch, attached (fbconnect-register_require_email-1324150-8.patch)
Comment #9
arnoldbird commentedI followed the instructions in #8, using the patch. I'm still getting the same error messages in the original post. The only thing I didn't do in #8 is log out from Drupal, because I was already logged out.
PS -- I should mention that there is no "Connect" button in my site. I read of a "Connect" button in the fbconnect config, but have not seen that. Instead what I see is a Facebook Connect link in my menu, which leads to a page with "Log in to mysite with Facebook account" and "Click here to connect your existing mysite account with Facebook".
Comment #10
arnoldbird commentedI was able to resolve the problem on my site. I think what I had to do was turn on Fast Registration Mode, then register that way, then repeat the steps in #8 (except, of course, the patch). I was then able to turn off Fast Registration Mode and still not see the errors listed in the OP. Everything smooth.
But then the problem happened again, albeit in a scenario that is unlikely in practice. To repro the problem again, I had to delete the app in my test user's FB, log out of FB and drupal, delete the user in drupal (using my admin role), and then try the registration process over again. I was then able to resolve the problem yet again by deleting my browser cache & cookies. It appears to me that a cookie is not being deleted when it needs to be. That said, it is perhaps a rare case when a drupal user will de-authorize the FB app and then be deleted from the drupal site, and then repeat the registration process all over again. Likely by the time the user does that, he/she may have cleared the browser cookies or the cookie may be expired.
This is all pretty confusing so I will try to repro everything again tomorrow to get clarity.
Comment #11
jcisio commentedCommitted patch in #8. Thanks all.
Comment #12.0
(not verified) commentedsyntax