FACEBOOK

Members

facebook.requestAuth({ scope = "" })

“Request auth on specified scopes”

Parameters:scope (str) – list of scopes
Raises:AUTH_FAIL: auth failed
Raises:AUTH_NOT_GRANTED: user did not grant auth
Raises:SCOPE_NOT_FOUND: scope could not be found
Raises:UNRECOVERABLE_AUTH_EXCEPTION: an unrecoverable exception was thrown
Return type:AuthOkEvent
class facebook.AuthOkEvent
getUserId()
Returns:userId logged in
getService()
Returns:service on which user is logged in
getScope()
Returns:scope on which user is logged in
facebook.removeAuth({ userid = "", scope = "" })

“Remove auth for userid, on specified scopes”

Parameters:
  • scope (str) – list of scopes
  • userid (str) – userid
Raises:

ACCOUNT_NOT_FOUND: account could not be found

Raises:

SCOPE_NOT_FOUND: scope could not be found

facebook.addSubscription({ userId = userid, object = "", fields = "" })

“Adds a subscription on certain user feed”

Parameters:
  • userid (str) – userid
  • object (str) – object type that this subscription applies to
  • fields (str) – fields of the subscription