![](/img/trans.png)
[英]Using Facebook's '@' to tag an User while publishing a post via Facebook Graph API / PHP SDK
[英]How to tag user(s) in comment via facebook php sdk?
我正在尝试在页面帖子评论中标记用户。
$fb_id = 'facebook_user_id_here';
$fb_name = 'facebook_user_name_and_surname_here';
$request = new FacebookRequest(
$this->session,
'POST',
$comment,
array(
'access_token' => $this->page_access_token, //it is access token of my page
'message => "Text here @[".$fb_id.":1:".$fb_name."]"
)
);
它仅显示名称和姓氏,而没有Fb配置文件URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.