You are here

function fb_example_fb_required_perms_alter in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 contrib/fb_example.module \fb_example_fb_required_perms_alter()

Implements hook_fb_required_perms_alter().

Builds a list of extended permissions required when authorizing the current facebook app.

See also

https://developers.facebook.com/docs/reference/login/user-friend-permiss...

File

contrib/fb_example.module, line 262
Example customizations to modules/fb.

Code

function fb_example_fb_required_perms_alter(&$perms) {
  if (variable_get('fb_example_require_email', TRUE)) {
    $perms[] = 'email';
  }
}