You are here

function fb_permission_map in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 6.3 contrib/fb_permission.module \fb_permission_map()
  2. 7.3 contrib/fb_permission.module \fb_permission_map()
2 calls to fb_permission_map()
fb_permission_form_alter in contrib/fb_permission.module
fb_permission_user in contrib/fb_permission.module
Implementation of hook_user.

File

contrib/fb_permission.module, line 20
Code pertaining to Facebook's extended permissions. see http://wiki.developers.facebook.com/index.php/Extended_permissions

Code

function fb_permission_map() {
  static $perms;
  if (!isset($perms)) {

    // http://developers.facebook.com/docs/authentication/permissions
    $perms = array(
      'email' => 'Allow %application to send you email',
      'offline_access' => 'Grant %application access to your Facebook profile.',
      'status_update' => 'Allow %application to set your status.',
      'photo_upload' => 'Allow %application to upload photos.',
      'create_listing' => 'Allow %application to create marketplace listings on your behalf.',
      'create_event' => 'Allow %application to create events on your behalf.',
      'rsvp_event' => 'Allow %application to RSVP to events on your behalf',
      'sms' => 'Allow %application to send you SMS text messages.',
      'read_stream' => 'Allow %application to display your stream.',
      'publish_stream' => 'Allow %application to publish to your stream.',
    );
  }
  return $perms;
}