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
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/feedThis 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