JFacebookUser::createPost
Method to post on a user's wall. Message or link parameter is required. Requires authentication and publish_stream permission.
Signature
public function createPost(mixed
$user,
[string
$message = null,
[string
$link = null,
[string
$picture = null,
[string
$name = null,
[string
$caption = null,
[string
$description = null,
[array
$actions = null,
[string
$place = null,
[string
$tags = null,
[string
$privacy = null,
[string
$object_attachment = null]]]]]]]]]]] )
Parameters
-
$user
- Either an integer containing the user ID or a string containing the username.
-
$message
- Post message.
-
$link
- Post URL.
-
$picture
- Post thumbnail image (can only be used if link is specified)
-
$name
- Post name (can only be used if link is specified).
-
$caption
- Post caption (can only be used if link is specified).
-
$description
- Post description (can only be used if link is specified).
-
$actions
- Post actions array of objects containing name and link.
-
$place
- Facebook Page ID of the location associated with this Post.
-
$tags
- Comma-separated list of Facebook IDs of people tagged in this Post.
-
$privacy
- Post privacy settings (can only be specified if the Timeline being posted
-
$object_attachment
- Facebook ID for an existing picture in the User's photo albums to use as the thumbnail image.
Returns
- mixed
- The decoded JSON response or false if the client is not authenticated.