You are here

function fboauth_user_connections in Facebook OAuth (FBOAuth) 7.2

Same name and namespace in other branches
  1. 6 includes/fboauth.fboauth.inc \fboauth_user_connections()
  2. 7 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" connection are included by default with the public_profile permission, which is always required.

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.
7 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_update_7201 in ./fboauth.install
FBAPI v2.0: Remove deprecated user_checkins permission.
fboauth_update_7202 in ./fboauth.install
FBAPI v2.3: Remove deprecated user_interests and user_activities permissions.

... See full list

File

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

Code

function fboauth_user_connections() {
  return array(
    'accounts' => array(
      'permission' => 'manage_pages',
      'label' => t('Account pages'),
    ),
    'apprequests' => array(
      'label' => t('App requests'),
    ),
    'albums' => array(
      'permission' => 'user_photos',
      'label' => t('Photo albums'),
    ),
    'books' => array(
      'permission' => 'user_likes',
      'label' => t('Books liked'),
    ),
    'events' => array(
      'permission' => 'user_events',
      'label' => t('Events'),
    ),
    'feed' => array(
      'permission' => 'read_stream',
      'label' => t("User's wall"),
    ),
    'friendlists' => array(
      'permission' => 'read_custom_friendlists',
      'label' => t('Lists of friends'),
    ),
    'friends' => array(
      'permission' => 'user_friends',
      'label' => t('Friends'),
    ),
    'home' => array(
      'permission' => 'read_stream',
      'label' => t("User's news feed"),
    ),
    'inbox' => array(
      'permission' => 'read_mailbox',
      'label' => t('Inbox threads'),
    ),
    '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'),
    ),
    'outbox' => array(
      'permission' => 'read_mailbox',
      'label' => t('Outbox'),
    ),
    'photos' => array(
      'permission' => 'user_photos',
      'label' => t('Photos'),
    ),
    'posts' => array(
      'permission' => 'user_posts',
      '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'),
    ),
    'tagged_places' => array(
      'permission' => 'user_tagged_places',
      'label' => t('List of tagged places for this person'),
    ),
    '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'),
    ),
  );
}