RetailMediaChannelFacebookConnector Class [AX 2012]

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
JJ780971.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif finishOAuth This method is part of 3-legged authentication process, which is not supported by the Facebook connector.This method will always return true.
JJ780971.pubmethod(en-us,AX.60).gif 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
JJ780971.pubmethod(en-us,AX.60).gif getPageLink Returns URL for the specified page.
JJ780971.pubmethod(en-us,AX.60).gif getPages Returns a list of object trees represeting user's pages (accounts)
JJ780971.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
JJ780971.privmethod(en-us,AX.60).gif getUserId Retrieves the ID of the authenticated user from Facebook
JJ780971.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif new Finds the retail media channel connector settings.
JJ780971.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif 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.
JJ780971.privmethod(en-us,AX.60).gif 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
JJ780971.pubmethod(en-us,AX.60).gif push The push method is called to post a message to the service
JJ780971.privmethod(en-us,AX.60).gif readCurrentUser Retrieves the information about the authenticated user from Facebook
JJ780971.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif startOAuth This method is part of 3-legged authentication process, which is not supported by the Facebook connector.This method will always return null.
JJ780971.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif 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.
JJ780971.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
JJ780971.pubmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::buildPageWallLink Builds a link to the page's wall given the link of the page
JJ780971.pubmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::construct Create new instance of RetailMediaChannelFacebookConnector and also creates instance of RetailCommonWebAPI
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::doGetPageLink Returns URL for the specified page.
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::doGetPages Returns a list of object trees represeting user's pages (accounts) Calls Facebook to get the list of the user's pages.
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::doGetPhotoPosts
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::doPush Posts a message to Facebook
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::doRemovePost
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::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.
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::formatErrorMessage Formats error message. It will include errorDetail into the message if the parameter is not empty.
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::formatSignInErrorMessage Formats error message returned during the sign-in process.
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::getAppId
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::getPageAccessToken
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::getUserAccessToken
JJ780971.privmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::hasPageAccessToken
JJ780971.pubmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::setup Sets up the connector settings for a Facebook account
JJ780971.pubmethod(en-us,AX.60).gif JJ780971.static(en-us,AX.60).gif ::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