Connectors of org.wso2.ballerina.connectors.facebook package
connector ClientConnector (string accessToken)
Facebook client connector.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
accessToken | string | Value of the valid access_token. |
action addComments()
Add comments
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
objectId | string | The ID of the object such as a page, video, etc. |
msg | string | The comment text. |
attachmentId | string | An ID of an unpublished photo. |
attachmentUrl | string | The URL of an image to include as a photo comment. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action addLikes()
Add likes.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
objectId | string | The object ID to add like. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object |
action createPost()
Create a post for user, page, event or group.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
id | string | The identifier. |
msg | string | The main body of the post. |
link | string | The URL of a link to attach to the post. |
place | string | Page ID of a location associated with this post. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action deleteLikes()
Delete likes.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
objectId | string | The object ID to remove the likes. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action deletePost()
Delete a post.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
postId | string | The post ID. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action getComments()
Get comments.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
objectId | string | The ID of the object such as a page, video, etc. |
fields | string | The fields to retrieve. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action getLikesDetails()
Get like details.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
objectId | string | The object ID to get the like details. |
fields | string | The fields to retrieve. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action retrievePost()
Retrieve a post.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
postId | string | The post ID. |
fields | string | The fields to retrieve which belongs to an object. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action updatePost()
Update a post.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
f | ClientConnector | The facebook Connector instance |
postId | string | The post ID. |
msg | string | The main body of the post. |
tags | string | Comma-separated list of user IDs of people tagged in this post. |
privacy | string | Privacy settings of the post. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object |