I've installed Drupal for Facebook along with the Facebook Connect module.
When I tested the FB connect from the login block, I managed to login through FB Connect successfully but upon return to my website, I received this error message:

Unable to send e-mail. Contact the site administrator if the problem persists.

I looked at the user profile details at user/%/edit and found that the email address field is empty. Should FB Connect be picking up the email address from facebook and populate it at this address field?

Kindly comment and/or assist.

Many thanks!

Regards,
Chang

CommentFileSizeAuthor
Screen shot 2011-01-30 at 3.42.42 PM.png15.59 KBccheu

Comments

ccheu’s picture

I noticed the following error at admin/people:

"Failed to query facebook user info: Invalid OAuth 2.0 Access Token 190. (logged into facebook as )"

It's also not picking up the password. Is this how it is supposed to work? Coz I can't even enter an email address as I do not have a password entered.

Please advise.

Cheers!
Chang

jghyde’s picture

RE:

I've installed Drupal for Facebook along with the Facebook Connect module.

Do you mean you have installed the http://drupal.org/project/fbconnect module in addition to http://drupal.org/project/fb module?

If so, disable and uninstall fbconnect. Both modules do the same thing and may be over-riding one another.

ccheu’s picture

Oh no, I didn't mean that. What I meant was the Facebook Connection submodule within Drupal for Facebook project.

Sorry for the confusion.

jghyde’s picture

I have the latest 6.3 release via cvs and I cannot duplicate this bug.

For configuration, do you have admin/build/modules Extended Permissions (fb_permission.module) enabled, and does your config for it on admin/build/fb/app/{app name}/fb_app have the "Send me email" permission checked for both "Extended Permissions" and "Prompt New Members for Permission"?

(I just realized you are on D7... oops! Who has time for D7 yet (-;). This should apply for D7 too.

ccheu’s picture

Joe,
Thanks very much for the reply.

Yeah, I thought I should live life at the bleeding edge. Bleeding I am as it is very early to hop on D7 as most of the other modules aren't stable on D7 as yet. :)

Whoa, I haven't even reached Extended Permission yet! I feel I need extended warranty before I can begin that. hehehe
But seriously though, I get a whole loads of errors when I go to admin/structure/fb/app/xxx/fb_app, after I have enabled Extended Permission.

Facebook API exception Invalid OAuth 2.0 Access Token.
#0 /public_html/sites/all/libraries/facebook-php-sdk/src/facebook.php(490): Facebook->_restserver(Array)
#1 /public_html/sites/all/modules/fb/fb.module(572): Facebook->api(Array)
#2 /public_html/sites/all/modules/fb/contrib/fb_permission.module(186): fb_fql_query()
#3 /public_html/includes/module.inc(1002): fb_permission_form_alter(Object(Facebook), 'SELECT permissi...')
#4 /public_html/includes/form.inc(1038): drupal_alter()
#5 /public_html/includes/form.inc(316): drupal_prepare_form(Array, Array, 'fb_app_edit_for...')
#6 /public_html/includes/form.inc(188): drupal_build_form(Array, Array, Array, 'fb_app_edit_for...')
#7 /home/heartyc1/public_html/mashestates.com/includes/menu.inc(501): drupal_get_form('fb_app_edit_for...', Array, Array)
#8 /home/heartyc1/public_html/mashestates.com/index.php(22): menu_execute_active_handler()
#9 {main}
$_REQUEST:
Array
(
[has_js] => 1
[Drupal_toolbar_collapsed] => 0
[Drupal_tableDrag_showWeight] => 0
[__utmb] => 77670280.1.10.1296438566
[__utmc] => 77670280
[__utma] => 77670280.1622110987.1295982312.1296438534.1296438566.46
[SESScd83d5c5395e42fb5aaea57a68ebaac8] => VZtbanVDcsVQk42fo5Kdg8etfcPwxD6Njkuwdq_lRfc
[__utmz] => 77670280.1295982312.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
[SESS91090e015404c6ee403f7e9b31a62682] => _PLmFA-WbYsc-YLYBAfTuDP3PXmgMC78mukXCYl47G0
)

REQUEST_URI:
/admin/structure/fb/app/xxx/fb_app

I had to turn off Extended Permission for now. Not sure what to do from here...

jghyde’s picture

Facebook isn't going to give you the email address unless your audience member gives it permission. We probably need to work on the D7 port for extended permissions module.

rezvani63’s picture

I'm using fb for D6 and getting this message when I click edit link to edit the application in my Drupal site:
"Facebook API exception Invalid OAuth 2.0 Access Token."
I get this message even when I click add new app. How can I solve this and edit my app?

rezvani63’s picture

Actually I get this message when I enable Extended Permissions (fb_permission.module).

Facebook API exception Invalid OAuth 2.0 Access Token.
.....
#2 /var/www/html/sites/all/modules/fb/contrib/fb_permission.module(186): fb_fql_query(Object(Facebook), 'SELECT permissi...')
#3 [internal function]: fb_permission_form_alter(Array, Array, 'fb_app_edit_for...')
#4 /var/www/html/includes/common.inc(2883): call_user_func_array('fb_permission_f...', Array)

Maybe something is wrong with fb_permission.module

How this can be solved?

cbayly1’s picture

Subscribed

ccheu’s picture

Joe, thanks again. Good point about the permission from the user to allow usage of their email address. Yes, I think we are still premature in terms of porting the Extended Permissions to Drupal 7. I do hope the port will happen soon. Cheers! :p

Dave Cohen’s picture

This thread has lost focus. Regarding the original problem, it should pick up the email only when the mail extended permission is demanded when the account is created. Otherwise, it doesn't know the email address. That the form requires an email address is a bug in drupal.

regarding the failure to create a new app, see http://drupal.org/node/1045484

ccheu’s picture

Status: Active » Closed (works as designed)

Dave, good point. Emails can't be picked up without permission. I shall watch closer on the porting of the extended permission in other threads.
Consider this thread closed. :)

c4antonio’s picture

Subscribed