You are here

function simple_fb_connect_get_scope in Simple FB Connect 7.2

Returns an array of Facebook permissions that will be requested from the user.

Return value

Array of FB permissions.

1 call to simple_fb_connect_get_scope()
simple_fb_connect_redirect_to_fb in ./simple_fb_connect.module
Page callback for /user/simple-fb-connect.

File

./simple_fb_connect.module, line 648
Simple Facebook Login Module for Drupal Sites.

Code

function simple_fb_connect_get_scope() {
  $scope = array();

  // Check if other modules have added any permissions with our hook.
  if (count(module_implements('simple_fb_connect_scope_info')) > 0) {

    // Call modules that implement the hook, and let them change scope.
    $scope = module_invoke_all('simple_fb_connect_scope_info', array());
  }

  // Add permission request to public profile and email.
  $scope[] = 'public_profile';
  $scope[] = 'email';
  return $scope;
}