dqpkea9486 2012-12-07 08:51
浏览 58

Facebook Api:像页面上的帖子一样用户或页面

I am using PHP SDK to request an api to like a post that is on my own page.

$like = $facebook->api("/".$postid."/likes", 'post');

Yet, the code runs smoothly but when I like a post on my own page, the "like" is being sent as from the page itself, not as my user account. As of "{My Page} likes this." instead of "You like this."

Is there any workaround or maybe fields?

Permissions: (extended) publish_stream only

Update: Facebook decided it is not necessary to fix this bug. 20/12/2012 23:06 · Status changed to Closed · Priority changed to None

  • 写回答

1条回答 默认 最新

  • dougang7521 2012-12-07 09:09
    关注

    The Facebook API uses the current logged in user when making API calls. So, if in your Facebook account you specified that you will use it as YOUR_PAGE_NAME then yes, all actions ex: "like", "comment", "share" etc. will be made from your page and not from your personal account. If you want to "like" posts, as of your personal account, then you should go to facebook.com, click the arrow next to "Home" menu and choose "Use Facebook as: YOUR NAME".

    Hope this helps.

    评论

报告相同问题?

悬赏问题

  • ¥35 引用csv数据文件(4列1800行),通过高斯-赛德尔法拟合曲线,在选取(每五十点取1点)数据,求该数据点的曲率中心。
  • ¥20 程序只发送0X01,串口助手显示不正确,配置看了没有问题115200-8-1-no,如何解决?
  • ¥15 Google speech command 数据集获取
  • ¥15 vue3+element-plus页面崩溃
  • ¥15 像这种代码要怎么跑起来?
  • ¥15 安卓C读取/dev/fastpipe屏幕像素数据
  • ¥15 pyqt5tools安装失败
  • ¥15 mmdetection
  • ¥15 nginx代理报502的错误
  • ¥100 当AWR1843发送完设置的固定帧后,如何使其再发送第一次的帧