繁体   English   中英

如何通过Facebook 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。

就像CBroe在评论中提到的那样,目前无法使用API​​。

作为参考,这称为“提及”或“提及标记”,并且个人资料只能在打开图形操作( docs )的消息中进行。

页面还可以在评论中提及其他页面。 docs

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM