Set description
Post description (can only be used if link is specified)
Parameters: | string – |
---|---|
Return type: | void |
Set message
The message that appears in the post.
Parameters: | string – |
---|---|
Return type: | void |
Set name
Post name (can only be used if link is specified)
Parameters: | string – |
---|---|
Return type: | void |
Set picture
Post thumbnail image (can only be used if link is specified)
Parameters: | string – |
---|---|
Return type: | void |
Set actions
Array of objects containing ‘name’ and ‘link’ keys
Parameters: | array – |
---|---|
Return type: | void |
Set targeting
JSON object containing countries, cities, regions or locales Example: {‘countries’:[‘US’,’GB’]}
Parameters: | string – |
---|---|
Return type: | void |
Set published
Whether a post is published. Default is published.
Requires extended permissions: publish_stream, manage_pages Only available when publishing to a page.
Parameters: | boolean – |
---|---|
Return type: | void |
Set scheduled publish time
Time when the page post should go live, this should be between 10 mins and 6 months from the time of publishing the post.
Requires extended permissions: publish_stream, manage_pages Only available when publishing to a page.
Parameters: | string – a unix timestamp |
---|---|
Return type: | void |
Create action
Returns an associative array for an action link
Parameters: |
|
---|---|
Return type: | array |
Create property
Returns an associative array for a property link
Parameters: |
|
---|---|
Return type: | array |
Create a post
Parameters: | string|int – the profile ID (eg - me) |
---|---|
Return type: | string the new post ID |