Class

SAF_User_Connection

Methods

__construct

__construct()

Constructor

Parameters:
  • SAF_User
  • SAF
Return type:

void

getConnection

getConnection()

Get a user connection

Parameters:
  • string – connection name
  • array – query params
Return type:

mixed

getAccounts

getAccounts()

Returns the pages owned by the current user.

Permissions: manage_pages

Return type:array of objects

getAchievements

getAchievements()

Returns the achievements for the user.

Permissions: user_games_activity or friends_games_activity

Return type:array of objects

getActivities

getActivities()

Returns the activities listed on the user’s profile.

Permissions: user_activities or friends_activities

Return type:array of objects

getAlbums

getAlbums()

Returns the photo albums the user has created.

Permissions: user_photos or friends_photos

Return type:array of album objects

getApplications

getApplications()

Returns the apps owned by the current user.

Permissions: manage_pages

Return type:array of objects

getAppRequests

getAppRequests()

Returns the user’s outstanding requests from an app.

Permissions: app access token

Return type:array of app requests

getBooks

getBooks()

Returns the books listed on the user’s profile.

Permissions: user_likes or friends_likes

Return type:array of objects

getCheckins

getCheckins()

Returns the places that the user has checked-into.

Permissions: user_checkins or friends_checkins

Return type:array of checkin objects

getEvents

getEvents()

Returns the events this user is attending.

Permissions: user_events or friends_events

Return type:array of objects

getFamily

getFamily()

Returns the user’s family relationships.

Permissions: user_relationships

Return type:array of objects

getFeed

getFeed()

Returns the users’s wall.

Permissions: read_stream

Return type:array of post objects

getFriends

getFriends()

Returns the user’s friends.

Return type:array of objects

getFriendLists

getFriendLists()

Returns the user’s friend lists.

Permissions: read_friendlists

Return type:array of post objects

getFriendRequests

getFriendRequests()

Returns the user’s incoming friend requests.

Permissions: read_requests

Return type:array of objects

getGames

getGames()

Returns the games the user has added to the Arts and Entertainment section of their profile.

Permissions: user_likes

Return type:array of objects

getGroups

getGroups()

Returns the groups that the user belongs to.

Permissions: user_groups or friends_groups

Return type:array of objects

getNewsFeed

getNewsFeed()

Returns the user’s news feed.

Permissions: read_stream

Return type:array of post objects

getInbox

getInbox()

Returns the threads in this user’s inbox.

Permissions: read_mailbox

Return type:array of thread objects

getInterests

getInterests()

Returns the interests listed on the user’s profile.

Permissions: user_interests or friends_interests

Return type:array of objects

getLikes

getLikes()

Returns the pages this user has liked.

Permissions: user_likes or friends_likes

Return type:array of objects

getLocations

getLocations()

Returns the posts, statuses, and photos in which the user has been tagged at a location, or where the user has authored content.

Permissions: user_photos, friend_photos, user_status, friends_status, user_checkins, or friends_checkins.

Return type:array of objects

getMovies

getMovies()

Returns the movies listed on the user’s profile.

Permissions: user_likes or friends_likes.

Return type:array of objects

getMusic

getMusic()

Returns the music listed on the user’s profile.

Permissions: user_likes or friends_likes

Return type:array of objects

getMutualFriends

getMutualFriends()

Returns the mutual friends between two users.

Return type:array of objects

getNotes

getNotes()

Returns the user’s notes.

Permissions: read_stream

Return type:array of objects

getNotifications

getNotifications()

Returns the app notifications for the user.

Permissions: manage_notifications

Return type:array of objects

getOutbox

getOutbox()

Returns the messages in this user’s outbox.

Permissions: read_mailbox

Return type:array of objects

getPayments

getPayments()

Returns the Facebook Credits orders the user placed with an application. Requires application to be payments enabled.

Permissions: app access token

Return type:array of objects

getPermissions

getPermissions()

Returns the permissions that user has granted the application.

Return type:array a single object with keys as the permission name

getPhotos

getPhotos()

Returns the photos the user (or friend) is tagged in.

Return type:array of photo objects

getPhotosUploaded

getPhotosUploaded()

Returns the photos of a user.

Permissions: user_photos

Return type:array of photo objects

getPicture

getPicture()

Get the user’s profile picture.

Parameters:string – square, small, normal, large
Return type:string URL of the user’sprofile picture

getPokes

getPokes()

Returns the user’s pokes.

Permissions: read_mailbox

Return type:array of objects

getPosts

getPosts()

Returns the user’s own posts.

Permissions: read_stream for non-public posts

Parameters:boolean – return non-public posts as well
Return type:array of post objects

getQuestions

getQuestions()

Returns the user’s questions.

Permissions: user_questions

Return type:array of question objects

getScores

getScores()

Returns the current scores for the user in games.

Permissions: user_games_activity or friends_games_activity

Return type:array of objects

getSharedPosts

getSharedPosts()

Returns the shares of the object.

Permissions: read_stream

Return type:array of post objects

getStatuses

getStatuses()

Returns the user’s status updates.

Permissions: read_stream

Return type:array of post objects

getSubscribedTo

getSubscribedTo()

Returns the people the user is subscribed to.

Return type:array of objects

getSubscribers

getSubscribers()

Returns the user’s subscribers.

Return type:array of objects

getTagged

getTagged()

Returns the posts the user is tagged in.

Permissions: read_stream

Return type:array of objects

getTelevision

getTelevision()

Returns the television listed on the user’s profile.

Permissions: user_likes or friends_likes

Return type:array of objects

getUpdates

getUpdates()

Returns the updates in this user’s inbox.

Permissions: read_mailbox

Return type:array of objects

getVideos

getVideos()

Returns the videos this user has been tagged in.

Permissions: user_videos or friends_videos

Return type:array of video objects

_checkPermission

_checkPermission()

Check the user’s permissions

Return type:void