To use the Facebook connector, add the <facebook.init>
element in your configuration before any other Faceboook operations. Most Graph API requests require the use of access tokens, which the app can generate by implementing Facebook Login.
The basic strategy to get a user token is for the client to request access and permission via the Login dialog. After the user is authenticated, the user is redirected to the user consent dialog. On completion of consent, the access token is returned to the client. For further information, refer to access tokens and how to generate them using Facebook Login.
...
With the current features of the ESB (version 4.8.1), the multipart/form-data received cannot be processed inside the ESB. Hence, the ESB should be in a content unaware status, which you can achieve using a pass-through proxy, and the user must build the message from the client end and send it to the proxy. Additional parameters such as albumId
, photoId
, pageId
, etc. are to be sent in the form of a URL parameter. These parameters can be retrieved from this URL and handled in the proxy. For example, if the album ID needs to be retrieved from this URL, then it is called by:
...
Code Block | ||
---|---|---|
| ||
curl -X POST \ -d "source=%7Bimage-data%7D" \ http://localhost:8280/services/facebook_postPhotoToAlbum/?album_id=1403293536601941 |
Additional information
Ensure that the following Axis2 configurations are added and enabled in the <ESB_HOME>\repository\conf\axis2\axis2.xml
file.
...