Class

SAF_Page_Connection

Methods

__construct

__construct()

Constructor

Parameters:
  • SAF_Page
  • SAF
Return type:

void

getConnection

getConnection()

Get a page connection

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

mixed

getAdmins

getAdmins()

Returns a list of the page’s admins.

Return type:array of objects containing id, name

getAlbums

getAlbums()

Returns the photo albums the page has uploaded.

Return type:array of album objects

getBlocked

getBlocked()

Returns a list of users blocked from the page.

Return type:array of objects containing id, name

getCheckins

getCheckins()

Returns the checkins made to this place page by the current user, and friends of the current user.

Permissions: user_checkins or friends_checkins

Return type:array of checkin objects

getConversations

getConversations()

Returns a list of the page’s conversations.

Permissions: Page access token with read_mailbox permission

Return type:array of checkin objects

getEvents

getEvents()

Returns the events the page is attending.

Return type:array of event objects

getFeed

getFeed()

Get the page’s wall.

Return type:array of Post objects

getGlobalBrandChildren

getGlobalBrandChildren()

Returns information of all children pages.

Return type:array of JSON objects

getGroups

getGroups()

Returns the groups to which the page belongs.

Return type:array array containing group id, version, name & unread fields

getInsights

getInsights()

Get the page’s Insights data.

Permissions: read_insights permission

Return type:array of insights objects

getMilestones

getMilestones()

Returns a list of the page’s milestones.

Return type:array of milestone objects

getNotes

getNotes()

Returns the page’s notes.

Return type:array of note objects

getPhotos

getPhotos()

Returns the page’s uploaded photos.

Return type:array of Photo objects

getPicture

getPicture()

Returns the page’s profile picture.

Parameters:string – square, small, normal, large
Return type:string URL of the page’s profile picture

getPosts

getPosts()

Returns the page’s own posts.

Return type:array of post objects

getPromotablePosts

getPromotablePosts()

Returns the page’s own posts, including unpublished and scheduled posts.

Return type:array of post objects

getQuestions

getQuestions()

Returns the page’s questions.

Return type:array of question objects

getSettings

getSettings()

Returns the page’s settings.

Return type:array of objects containing setting and value fields

getStatuses

getStatuses()

Returns the page’s status updates.

Return type:array of status message objects

getTabs

getTabs()

Returns the page’s tabs.

Permissions: Page access token

Return type:array of tab objects

getTagged

getTagged()

Returns the photos, videos, and posts in which the Page has been tagged.

Return type:array of Photo, Video or Post objects

getVideos

getVideos()

Returns the videos the page has uploaded.

Return type:array of video objects

_getPageAccessToken

_getPageAccessToken()

Get the page’s access token.

Return type:string