Ballerina API Documentation

Connectors of org.wso2.ballerina.connectors.facebook package

connector ClientConnector (string accessToken)

Facebook client connector.

Parameters:

Parameter NameData TypeDescription
accessTokenstringValue of the valid access_token.

Actions:

action addComments()

Add comments

Parameters:

Parameter NameData TypeDescription
objectIdstringThe ID of the object such as a page, video, etc.
msgstringThe comment text.
attachmentIdstringAn ID of an unpublished photo.
attachmentUrlstringThe URL of an image to include as a photo comment.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action addLikes()

Add likes.

Parameters:

Parameter NameData TypeDescription
objectIdstringThe object ID to add like.

Return Parameters:

Return VariableData TypeDescription
messageResponse object

action createPost()

Create a post for user, page, event or group.

Parameters:

Parameter NameData TypeDescription
idstringThe identifier.
msgstringThe main body of the post.
linkstringThe URL of a link to attach to the post.
placestringPage ID of a location associated with this post.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action deleteLikes()

Delete likes.

Parameters:

Parameter NameData TypeDescription
objectIdstringThe object ID to remove the likes.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action deletePost()

Delete a post.

Parameters:

Parameter NameData TypeDescription
postIdstringThe post ID.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action getComments()

Get comments.

Parameters:

Parameter NameData TypeDescription
objectIdstringThe ID of the object such as a page, video, etc.
fieldsstringThe fields to retrieve.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action getLikesDetails()

Get like details.

Parameters:

Parameter NameData TypeDescription
objectIdstringThe object ID to get the like details.
fieldsstringThe fields to retrieve.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action retrievePost()

Retrieve a post.

Parameters:

Parameter NameData TypeDescription
postIdstringThe post ID.
fieldsstringThe fields to retrieve which belongs to an object.

Return Parameters:

Return VariableData TypeDescription
messageResponse object.

action updatePost()

Update a post.

Parameters:

Parameter NameData TypeDescription
postIdstringThe post ID.
msgstringThe main body of the post.
tagsstringComma-separated list of user IDs of people tagged in this post.
privacystringPrivacy settings of the post.

Return Parameters:

Return VariableData TypeDescription
messageResponse object


Menu

  • Connectors
    • ClientConnector (string accessToken)
      • addComments(string objectId, string msg, string attachmentId, string attachmentUrl)
      • addLikes(string objectId)
      • createPost(string id, string msg, string link, string place)
      • deleteLikes(string objectId)
      • deletePost(string postId)
      • getComments(string objectId, string fields)
      • getLikesDetails(string objectId, string fields)
      • retrievePost(string postId, string fields)
      • updatePost(string postId, string msg, string tags, string privacy)

Copyright 2017 Ballerina API Documentation