You are here

function fb_example_fb_required_perms_alter in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.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

http://developers.facebook.com/docs/authentication/permissions

File

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

Code

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