function fb_get_admin_token in Drupal for Facebook 7.4
This returns a site-wide token. If a specific variable is requested, but not set, the default token will be returned.
7 calls to fb_get_admin_token()
- fb_access_token in ./
fb.module - The access token allows the Fb app to publish and read posts.
- fb_post_admin_form in ./
fb_post.admin.inc - Post to Facebook settings form.
- fb_post_entity_page in ./
fb_post.module - fb_post_entity_publish_form in ./
fb_post.module - fb_post_form_node_form_alter in ./
fb_post.module - Implements hook_form_BASE_FORM_ID_alter(). Implements hook_form_node_form_alter().
File
- ./
fb.module, line 794
Code
function fb_get_admin_token($variable = FB_VAR_ADMIN_ACCESS_TOKEN) {
$token = variable_get($variable, NULL);
if ($token === NULL) {
$token = variable_get(FB_VAR_ADMIN_ACCESS_TOKEN, NULL);
}
return $token;
}