Reputation: 1113
I'm 4 hours tring to send a post on a page on facebook with
$attachment = array(
'message' => "@[".$id.":1:".$name.'] dsf sadfewqr',
'name' => "test test etst etst test test",
'link' => "http://www.tiscali.it",
'description' => "test",
'picture'=> "http://www.example.com/img.jpg",
'message_tags' => array(
'data' => array(
'id' => $id,
'name' => $partecipant['name_screen'],
'offset' => 0,
"type" => "user",
'length' => strlen($name)
)
),
'access_token' => '--fanpageaccesstoken--'
);
$facebook->api('/'.$idfanpage.'/feed', 'POST', $attachment);
Every time i get only message without tag. What i'm doing wrong?
Thanks everyone!
Upvotes: 0
Views: 6281
Reputation: 96373
Where did you get the message_tags parameter from?
According to https://developers.facebook.com/docs/reference/api/user/#posts you should use the tags parameter to give a list of comma separated user ids.
And pay attention to the note saying, You cannot specify this field without also specifying a place.
Upvotes: 3