简体   繁体   English

如何使用facebook javascript sdk在“访客帖子”上发布?

[英]how to post on 'visitor post' using facebook javascript sdk?

i want to create a post that will appear on the recipients 'Visitors Post'. 我想创建一个帖子,该帖子将显示在收件人的“访客帖子”上。 As a test, I am trying to target this page: https://www.facebook.com/SenatorMikulski/ . 作为测试,我试图定位此页面: https : //www.facebook.com/SenatorMikulski/ I went to this site http://findmyfbid.com/ to get the user id, which is 142890125771427. Then I am doing this in my code; 我访问了该站点http://findmyfbid.com/以获取用户ID,即142890125771427。

  ezfb.api('/me/feed','post',{message:'We will miss you',to:[142890125771427]}, function (res) {

     debugger
    });

The post succeeds but it appears on my timeline and not on the Senator's Visitor Post. 帖子成功,但出现在我的时间轴上,而不出现在参议员的访客帖子上。 What am I doing wrong? 我究竟做错了什么?

Ok i figured out my mistake. 好吧,我弄清楚了我的错误。 The end point should be 142890125771427/feed 终点应为142890125771427 / feed

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

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