如何向喜欢网页或对象的人群发布内容?
因此,大约一年半前,我在这里提出了类似的问题:
如何以编程方式发布到与“喜欢”页面关联的 Facebook feed?
从那时起,facebook 就发生了一些变化(我知道很震惊)。如果您不想阅读其他问题,我想做的是向所有喜欢某个网页(带有“喜欢”按钮的网站)的人发布一条消息。答案中描述的方法不再有效。我还没有看到 Facebook 说他们不正式支持这一点(我再次知道震惊)。我是否遗漏了一些完全明显的东西?
谢谢
So I similar question was asked about a year an half ago here:
How do you programmatically publish to the Facebook feed associated with a 'liked' page?
Since then facebook has changed somethings (I know shock). If you don't want to read that other question, what I'm trying to do is publish a message to all people who liked a certain webpage (a website with a like button). The method described in the answer no longer works. I haven't seen facebook say any where that they don't official support this (I know shock, again). Am I missing something completely obvious?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过一番研究后,我发现了如何做到这一点。此链接 http://developers.facebook.com/docs/opengraphprotocol 描述了如何发布更新给喜欢您网页的用户。这是curl命令:
curl -F 'access_token=...' -F 'message=Hello Likers' -F 'id=http://www.myopengraphpage.com/page1.html' https://graph.facebook.com/feed
此命令不起作用,要使其工作,您需要使用对象的开放图 ID而不是 id 参数的 URL。您可以从图形 API 中获取 URL 的 id,如下所示: http://graph.facebook.com/?id=http://www.myopengraphpage.com/page1.html
After some research I found out how to do this. This link http://developers.facebook.com/docs/opengraphprotocol describes how to post an update to users who have liked your webpage. Here's the curl command:
curl -F 'access_token=...' -F 'message=Hello Likers' -F 'id=http://www.myopengraphpage.com/page1.html' https://graph.facebook.com/feed
This command doesn't work and to make it work you need to use the open graph id of the object instead of the URL for the id parameter. You get the id of the URL from the graph API like this: http://graph.facebook.com/?id=http://www.myopengraphpage.com/page1.html
当您在 Facebook 页面上发布帖子时,所有喜欢它的人都可以在他们的墙上看到该帖子(取决于安全设置和排序选择)。您可以让页面管理员发布某些内容,也可以使用页面访问令牌以编程方式执行此操作。请参阅 http://developers.facebook.com/docs/authentication/ 的页面登录部分
编辑
基于对原始问题从 Facebook 页面更改为“网站页面”的编辑,我有了一个新答案。答案是:抱歉,你不能。
When you make a post to your facebook page, all people who like it will be able to see that post on their wall (depending on security settings and sorting choices). You can either have the page admin post something or you can do it programmatically using a PAGE access token. See the page login part of http://developers.facebook.com/docs/authentication/
EDIT
Based upon the edits to the original question changing from Facebook page to "website page", I have a new answer. The answer is: sorry, you cannot.