How to post to a Facebook page using PHP and Graph API?

I like to publish FB Fan, Some Content on my page, using cron's work in PHP, How can I do this? Can you give me an example?

+4
source share
1 answer

After familiarizing yourself with the Graph API, check out the Facebook documentation for the pages http://developers.facebook.com/docs/reference/api/page/

Here is the main Graph Graph API documentation page http://developers.facebook.com/docs/api

For PHP Development, check out this SDK. It will make your life easier for interacting with Facebook using PHP https://github.com/facebook/php-sdk/

Here is a link on how to set up the Facebook application for publication on the Facebook page http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/ (I didn't follow this exact guide, but there was a slave to figure it out myself, so let me know how it works for you)

note As I mentioned in the following comment, pay particular attention to the session persistent key.

+4
source

Source: https://habr.com/ru/post/1337514/


All Articles