How do you programmatically post to your Facebook feed related to your favorite page?

When you like the “website page” and you have the right meta tags, Facebook essentially creates an FB page for this favorite page. This gives you the opportunity to update all fans of this page. To do this, you must be specified as the administrator of this page. Everything is explained pretty well here:

http://blog.roost.com/2010/07/23/like-button-enhancements-publish-fans/

Now the question is: suppose I don’t want to go through the link to the admin page that I found next to all my buttons? how can I publish directly a graph object, for example. graph.facebook.com//feed?

If I try to do this, I need an access token. How to get access token to these generated FB pages?

+4
source share
1 answer

It turns out that it is not as difficult as I did. All you really need to do is create a facebook application, get an access token for that application, and then publish it to / feed on the Liked page. Facebook's own document explains it pretty well (for change) here: http://developers.facebook.com/docs/opengraph

The only trick I discovered while calculating this was that the FB application that you specify with the meta tag MUST be hosted in the same domain as the Liked pages.

+2
source

All Articles