Facebook API exception Invalid OAuth access token signature..

#0 [internal function]: Facebook->_graph('666265876', Array)
#1 /var/www-sites/drupal/dev/sites/all/libraries/facebook-php-sdk/src/facebook.php(492): call_user_func_array(Array, Array)
#2 /var/www-sites/drupal/dev/sites/scratch.8327.co.za/modules/fb/fb.module(1281): Facebook->api('666265876', Array)
#3 /var/www-sites/drupal/dev/sites/scratch.8327.co.za/modules/fb/fb_user.module(743): fb_api('666265876')
#4 /var/www-sites/drupal/dev/includes/module.inc(1002): fb_user_form_user_profile_form_alter(Array, Array, 'user_profile_fo...')
#5 /var/www-sites/drupal/dev/includes/form.inc(1038): drupal_alter(Array, Array, Array, 'user_profile_fo...')
#6 /var/www-sites/drupal/dev/includes/form.inc(316): drupal_prepare_form('user_profile_fo...', Array, Array)
#7 /var/www-sites/drupal/dev/includes/form.inc(188): drupal_build_form('user_profile_fo...', Array)
#8 [internal function]: drupal_get_form('user_profile_fo...', Object(stdClass))
#9 /var/www-sites/drupal/dev/includes/menu.inc(501): call_user_func_array('drupal_get_form', Array)
#10 /var/www-sites/drupal/dev/index.php(22): menu_execute_active_handler()
#11 {main}

$_REQUEST:
Array
(
    [destination] => admin/people
)

REQUEST_URI:
/user/2/edit?destination=admin%2Fpeople&

Files: 

Comments

vikasbucha’s picture

StatusFileSize
new373 bytes

I was facing the same issue.
in file modules/fb/fb_user.module line 742

changed
// The drupal user is a facebook user. Now, learn more from facebook.
$info = fb_api($fbu);

to
// The drupal user is a facebook user. Now, learn more from facebook.
$info = fb_api($fbu, fb_get_token());

worked for me.

Dave Cohen’s picture

Status:Active» Needs review

Thanks for patch, will apply to my local copy.

thomas4019’s picture

Thank you vikasbucha so much for sharing!

I had to apply this change to get it to work.

Dave Cohen’s picture

StatusFileSize
new2.95 KB

I'm testing a slightly more flushed out patch on my D6 site. This will make it to D7 shorty.