Class

SAF_Facebook_User

Methods

getUserData

getUserData()

getUserName

getUserName()

getUserFirstName

getUserFirstName()

getUserLastName

getUserLastName()

getUserGender

getUserGender()

getUserEmail

getUserEmail()

getUserProfileUrl

getUserProfileUrl()

getUserProfilePicture

getUserProfilePicture()

getExtendedPerms

getExtendedPerms()

getGrantedPerms

getGrantedPerms()

getRevokedPerms

getRevokedPerms()

getLoginUrl

getLoginUrl()

getLogoutUrl

getLogoutUrl()

isAppDeveloper

isAppDeveloper()

isAuthenticated

isAuthenticated()

hasPermission

hasPermission()

CHECK IF USER HAS PERMISSION Determine if a user has allowed a specific permission

Parameters:string – permission to check
Return type:bool

setRedirectUrl

setRedirectUrl()

__construct

__construct()

CONSTRUCTOR

Return type:void

_thirdPartyCookieFix

_thirdPartyCookieFix()

THIRD PARTY COOKIE FIX

Checks if a session cookie is not set and if so, automatically redirects the user to the base URL with a ‘saf_redirect’ URL param. The app then starts the session on the ‘real’ server and immediately redirects back to the proper URL (tab or convas);

Return type:string

_determineRedirectUrl

_determineRedirectUrl()

DETERMINE REDIRECT URL

Returns the proper redirect URL for use with getLoginUrl()

Return type:string

_handleException

_handleException()

HANDLE EXCEPTION

Return type:void

_isAppDeveloper

_isAppDeveloper()

DETERMINE IF USER IS THE APP DEVELOPER

Return type:boolean

_checkPermissions

_checkPermissions()

CHECK PERMISSIONS

Return type:void

_getUserValue

_getUserValue()

GET USER VALUE

Return a clean value whether the key exits or not

Parameters:
  • string – key to check for
  • mixed – default value if not set
Return type:

mixed