使用php facebook sdk在提要上标记好友
我花了4个小时在facebook上的一个页面上用使用php facebook sdk在提要上标记好友,php,facebook,sdk,tags,publish,Php,Facebook,Sdk,Tags,Publish,我花了4个小时在facebook上的一个页面上用 $attachment = array( 'message' => "@[".$id.":1:".$name.'] dsf sadfewqr', 'name' => "test test etst etst test test", 'link' => "http://www.tiscali.it",
$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);
每次我只收到没有标签的信息。我做错了什么
谢谢大家 您从何处获得消息\u tags参数 根据需要,您应该使用tags参数给出逗号分隔的用户ID列表
请注意,如果不指定位置,则无法指定此字段。您从何处获得消息\u tags参数 根据需要,您应该使用tags参数给出逗号分隔的用户ID列表
请注意下面的注释:如果不指定位置,就不能指定此字段。使用读取参数时出错。如何在邮件中使用标记?谢谢你的回答,你的意思是说你在某个地方和其他人在一起,或者只是指在帖子中提到某人,就像你在facebook上开始键入@username那样?后者显然不可能通过API实现,另请参见我所做的使用读取参数时出错。如何在邮件中使用标记?谢谢你的回答,你的意思是说你在某个地方和其他人在一起,或者只是指在帖子中提到某人,就像你在facebook上开始键入@username那样?后者显然不可能通过API实现,另请参见