You are here

function fb_connect_app_init in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 6.3 fb_connect.module \fb_connect_app_init()
  2. 6.2 fb_connect.module \fb_connect_app_init()
  3. 7.3 fb_connect.module \fb_connect_app_init()

Prepare for fbConnect use. Because a single Drupal might support multiple apps, we don't know in advance which is the fbConnect app. Theoretically, it might be possible to simultaneously use multiple apps and fbConnect, but my suspicion is facebook would throw a total hissy-fit if you tried.

1 call to fb_connect_app_init()
fb_connect_block in ./fb_connect.module
Implementation of hook_block.

File

./fb_connect.module, line 55
Support for Facebook Connect features

Code

function fb_connect_app_init($fb_app) {
  if ($fb = fb_api_init($fb_app, FB_FBU_CURRENT)) {
    return $fb;
  }
}