You are here

function fboauth_user_connections in Facebook OAuth (FBOAuth) 7

Same name and namespace in other branches
  1. 6 includes/fboauth.fboauth.inc \fboauth_user_connections()
  2. 7.2 includes/fboauth.fboauth.inc \fboauth_user_connections()

Return a list of Facebook connection points.

This function provides a list of all of the Facebook GraphAPI connection points that can be access to learn extended information about a user. Usually each of these connection points will allow querying against content the user has created as opposed to information directly about the user.

Each connection requires extended permission granted by the end-user. The returned array of connections provides the name of each required permission and a human-readable name for the connection.

Note that access to the "picture" and "friends" connections are always allowed if the user grants generic access to your application.

See also

fboauth_user_properties()

http://developers.facebook.com/docs/reference/api/user/

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

2 calls to fboauth_user_connections()
fboauth_settings_form in includes/fboauth.pages.inc
Menu callback; Display the settings form for Facebook OAuth.
fboauth_user_permissions in includes/fboauth.fboauth.inc
Return a list of permissions based on a list of properties or connections.
4 string references to 'fboauth_user_connections'
fboauth_settings_form in includes/fboauth.pages.inc
Menu callback; Display the settings form for Facebook OAuth.
fboauth_settings_form_submit in includes/fboauth.pages.inc
Form submission function for fboauth_settings_form().
fboauth_uninstall in ./fboauth.install
Implements hook_uninstall().
fboauth_user_connect_permissions in includes/fboauth.fboauth.inc
Utility function to retrieve all permissions required for Facebook connect.

File

includes/fboauth.fboauth.inc, line 703
Provides functions used during Facebook login processes.

Code

function fboauth_user_connections() {
  return array(
    'accounts' => array(
      'permission' => 'manage_pages',
      'label' => t('Account pages'),
    ),
    'activities' => array(
      'permission' => 'user_activities',
      'label' => t('Activities'),
    ),
    'apprequests' => array(
      'label' => t('App requests'),
    ),
    'albums' => array(
      'permission' => 'user_photos',
      'label' => t('Photo albums'),
    ),
    'books' => array(
      'permission' => 'user_likes',
      'label' => t('Books liked'),
    ),
    'checkins' => array(
      'permission' => 'user_checkins',
      'label' => t('Check-ins'),
    ),
    'events' => array(
      'permission' => 'user_events',
      'label' => t('Events'),
    ),
    'feed' => array(
      'permission' => 'read_stream',
      'label' => t("User's wall"),
    ),
    'friendlists' => array(
      'permission' => 'read_friendlists',
      'label' => t('Lists of friends'),
    ),
    'home' => array(
      'permission' => 'read_stream',
      'label' => t("User's news feed"),
    ),
    'inbox' => array(
      'permission' => 'read_mailbox',
      'label' => t('Inbox threads'),
    ),
    'interests' => array(
      'permission' => 'user_interests',
      'label' => t('Interests'),
    ),
    'likes' => array(
      'permission' => 'user_likes',
      'label' => t('Pages liked'),
    ),
    'links' => array(
      'permission' => 'read_stream',
      'label' => t('Posted links'),
    ),
    'movies' => array(
      'permission' => 'user_likes',
      'label' => t('Movies liked'),
    ),
    'music' => array(
      'permission' => 'user_likes',
      'label' => t('Music liked'),
    ),
    'notes' => array(
      'permission' => 'read_stream',
      'label' => t('Notes'),
    ),
    'outbox' => array(
      'permission' => 'read_mailbox',
      'label' => t('Outbox'),
    ),
    'photos' => array(
      'permission' => 'user_photos',
      'label' => t('Photos'),
    ),
    'posts' => array(
      'permission' => 'read_stream',
      'label' => t('Posts'),
    ),
    'statuses' => array(
      'permission' => 'read_stream',
      'label' => t('Status updates'),
    ),
    'tagged' => array(
      'permission' => 'read_stream',
      'label' => t('Tagged in photos, videos, and posts'),
    ),
    'television' => array(
      'permission' => 'user_likes',
      'label' => t('Television liked'),
    ),
    'updates' => array(
      'permission' => 'read_mailbox',
      'label' => t('Inbox updates'),
    ),
    'videos' => array(
      'permission' => 'user_videos',
      'label' => t('Videos'),
    ),
  );
}