You are here

function fb_user_get_map_url in Drupal for Facebook 5

To help map local accounts to facebook accounts, we can bounce a logged in user to a canvas page. That page will ensure they have added the application, then bounce them back to a local HTML page. When they are bounced back, a cached key allows us to know which facebook account corresponds to the user.

Return value

a fully qualified URL of the canvas page

2 calls to fb_user_get_map_url()
fb_user_nodeapi in ./fb_user.module
fb_user_user in ./fb_user.module
Implementation of hook_user.

File

./fb_user.module, line 539
This module allows Drupal user records to be associated with Facebook user ids. It can create local user accounts when Facebook users visit an application's canvas pages.

Code

function fb_user_get_map_url($fb_app) {
  if ($fb_app->canvas) {
    return "http://apps.facebook.com/{$fb_app->canvas}/" . FB_USER_SYNC_PATH;
  }
}