Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implements RetailMediaChannelConnector intefrace to allow setting up a link, post messages and upload supplimentary images to Facebook
Syntax
class RetailMediaChannelFacebookConnector implements RetailMediaChannelConnector
Run On
Called
Methods
Method | Description | |
---|---|---|
![]() |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
![]() |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
![]() |
finishOAuth | This method is part of 3-legged authentication process, which is not supported by the Facebook connector.This method will always return true. |
![]() |
getLoginURl | The getLoginURI method is called to get the URI to direct the user to to sign in and grant the access to the application |
![]() |
getPageLink | Returns URL for the specified page. |
![]() |
getPages | Returns a list of object trees represeting user's pages (accounts) |
![]() |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
![]() |
getUserId | Retrieves the ID of the authenticated user from Facebook |
![]() |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
![]() |
new | Finds the retail media channel connector settings. |
![]() |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
![]() |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
![]() |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
![]() |
owner | Returns the instance that owns the object. (Inherited from Object.) |
![]() |
processLoginResponse | This method is called when user is signing in and the web-browser detects new pages opened.This mau be used to check if the page opened is the final page in the sign in process, or if user decided to cancel the process. |
![]() |
processReturnedFragment | Expects a URL fragment of a URL Facebook redirects the user to upon successful sing-in. It parses the fragment and extracts access token and token expiration time-stamp The format of the fragment is as follows: #access_token=166942940015970%7C2.sa0&expires_in=64090 |
![]() |
push | The push method is called to post a message to the service |
![]() |
readCurrentUser | Retrieves the information about the authenticated user from Facebook |
![]() |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
![]() |
startOAuth | This method is part of 3-legged authentication process, which is not supported by the Facebook connector.This method will always return null. |
![]() |
toString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
uploadPhoto | The uploadPhoto method is called when image needs to be uploaded to the service, if it is a separate operation from posting a message. |
![]() |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
![]() |
wait | Pauses a process. (Inherited from Object.) |
![]() |
xml | Returns an XML string that represents the current object. (Inherited from Object.) |
![]() ![]() |
::buildPageWallLink | Builds a link to the page's wall given the link of the page |
![]() ![]() |
::construct | Create new instance of RetailMediaChannelFacebookConnector and also creates instance of RetailCommonWebAPI |
![]() ![]() |
::doGetPageLink | Returns URL for the specified page. |
![]() ![]() |
::doGetPages | Returns a list of object trees represeting user's pages (accounts) Calls Facebook to get the list of the user's pages. |
![]() ![]() |
::doGetPhotoPosts | |
![]() ![]() |
::doPush | Posts a message to Facebook |
![]() ![]() |
::doRemovePost | |
![]() ![]() |
::doUploadPhoto | The uploadPhoto method is called when image needs to be uploaded to the service, if it is a separate operation from posting a message. |
![]() ![]() |
::formatErrorMessage | Formats error message. It will include errorDetail into the message if the parameter is not empty. |
![]() ![]() |
::formatSignInErrorMessage | Formats error message returned during the sign-in process. |
![]() ![]() |
::getAppId | |
![]() ![]() |
::getPageAccessToken | |
![]() ![]() |
::getUserAccessToken | |
![]() ![]() |
::hasPageAccessToken | |
![]() ![]() |
::setup | Sets up the connector settings for a Facebook account |
![]() ![]() |
::setupPage | Sets up the connector settings with a Facebook page information messages will be posted to |
Top
Remarks
This connector class implements 1-legged authentication process.
See the RetailMediaChannelConnector class for more information on authentication.
Inheritance Hierarchy
Object Class
RetailMediaChannelFacebookConnector Class