![]() |
IP.Board
3.3.0
|
Public Member Functions | |
| __construct ($registry, $token='', $userId=0, $forceThrowException=false) | |
| _login () | |
| fetchHasAppPermission ($permission) | |
| fetchUserData ($token='') | |
| fetchUserTimeline ($userId=0, $minId=0, $stripReplies=true) | |
| finishConnection () | |
| finishLogin () | |
| finishNewConnection ($originalId, $newId) | |
| isConnected () | |
| postLinkToWall ($url, $comment='', $shorten=true) | |
| redirectToConnectPage () | |
| resetApi ($token='', $userId='') | |
| revokeAuthorization () | |
| syncMember ($memberData) | |
| updateStatusWithUrl ($content, $url, $alwaysAdd=false) | |
| userHasRemovedApp () | |
Data Fields | |
| $extendedPerms = array( 'email', 'read_stream', 'publish_stream' ) | |
Protected Attributes | |
| $_api | |
| $_connected = false | |
| $_login | |
| $_oauth | |
| $_userData = array() | |
| $_userId | |
| $_userToken | |
| $cache | |
| $caches | |
| $DB | |
| $lang | |
| $member | |
| $memberData | |
| $registry | |
| $request | |
| $settings | |
| __construct | ( | $ | registry, |
| $ | token = '', |
||
| $ | userId = 0, |
||
| $ | forceThrowException = false |
||
| ) |
Construct. $this->memberData['twitter_token'] $this->memberData['twitter_secret']
| object | Registry object |
| string | Facebook user token |
| int | User ID |
| boolean | Force an exception to be thrown rather than output error (used in IPSMember::buildDisplayPhoto) public |
| _login | ( | ) |
Accessor for the log in functions
public
| fetchHasAppPermission | ( | $ | permission | ) |
Fetch user has app permission Wrapper so we can change it later
public
| string | Permission mask ('email', etc) |
| fetchUserData | ( | $ | token = '' | ) |
Return user data
public
| fetchUserTimeline | ( | $ | userId = 0, |
| $ | minId = 0, |
||
| $ | stripReplies = true |
||
| ) |
Fetch a user's recent status updates (max 50)
public
| int | Twitter ID |
| bool | Strip (true default) |
| int | Minimum ID to grab from |
| finishConnection | ( | ) |
Completes the connection
public
| finishLogin | ( | ) |
Completes the connection
public
| finishNewConnection | ( | $ | originalId, |
| $ | newId | ||
| ) |
Finish a log-in connection WARNING: NO PERMISSION CHECKS ARE PERFORMED IN THIS FUNCTION.
public
| int | Forum ID of original member (member to keep) |
| int | Forum ID of linking member (member to remove) |
| isConnected | ( | ) |
Return whether or not the user is connected to twitter
public
| postLinkToWall | ( | $ | url, |
| $ | comment = '', |
||
| $ | shorten = true |
||
| ) |
Post a link to the user's FB wall
public
| string | URL |
| string | Comment (can be NUFING) |
Redirects a user to the oauth connect page.
public
| resetApi | ( | $ | token = '', |
| $ | userId = '' |
||
| ) |
Resets API
public
| string | OAUTH user token |
Revoke app authorization
public
| syncMember | ( | $ | memberData | ) |
Function to resync a member's Facebook data
public
| mixed | Member Data in an array form (result of IPSMember::load( $id, 'all' ) ) or a member ID |
EXCEPTION CODES: NO_MEMBER Member ID does not exist NOT_LINKED Member ID or data specified is not linked to a FB profile
| updateStatusWithUrl | ( | $ | content, |
| $ | url, | ||
| $ | alwaysAdd = false |
||
| ) |
Post a status update to Facebook based on native content Which may be longer and such and so on and so forth, etc
public
| string | Content |
| string | URL to add |
| bool | Always add the URL regardless of content length |
User has removed app from Facebook
public