Auto Post On Facebook Using PHP
Last Updated - Aug 30, 2019
In this tutorial we will show you how to post automatically on Facebook using PHP and Facebook Graph API.You just have to create a Facebook App and get your Access Token and need a Facebook PHP SDK to help to post on Facebook.You may also like login with facebook using PHP.
To Post On Facebook Automatically It Takes Only Three Steps:-
- Create A Facebook App
- Get Facebook Access Token
- Make a PHP file and define methods to Post On Facebook
Step 1.Create A Facebook App
Before creating Facebook App you need to download Facebook PHP SDK and it requires PHP 5.2.0 or higher for PHP curl extension.Now we have to create Facebook App go to https://developers.facebook.com/apps and follow the instructions.
Step 2.Get Facebook Access Token
To get Access Token you have to set callback URL for the Facebook app to get the result.Then authorize the app for permissions on https://developers.facebook.com/docs/facebook-login/permissions/v2.2 and then get the Access Token.Make sure renew your Facebook Token After 60 days because Facebook Access token will expires in 60 days.
Step 3.Make a PHP file and define methods to Post On Facebook
We make a PHP file and save it with a name autopost.php
After using above code you post will be posted automatically on your Facebook profile automatically.You may also like get facebook like, share and comment using PHP.
Thats all, this is how to Post On Facebook Automatically using PHP.You can customize this code further as per your requirement. And please feel free to give comments on this tutorial.
- How does one travel a national park
- Does website extension honey worth it?no_redirect=1
- Which is the best disco in Lucknow
- Is the movie 12 Strong realistic
- Does Satan count his blessings
- Is an engineering course worth studying
- Is PayPal an Indian company or not
- Which is worse hypoxia or hyperoxia
- How do I write my professional CV
- Do fitness trainers get paid good
- Is there any anime like magi
- Why do metals get corroded?no_redirect=1
- What is the greatest illusion about information
- Is Christopher Walken a nice guy
- Is blood transfusion safe for obese people
- Is anti white racist
- On which basis does VIT give ranking