How do I publish to the group of people who liked a webpage or object?

扶醉桌前 提交于 2019-12-24 09:23:47

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/9168434/how-do-i-publish-to-the-group-of-people-who-liked-a-webpage-or-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!