Product Description. Last Status Updates This PHP script allows you to easily view the last updated status of the user on your application. Cross Browser Compatible This PHP forum script is cross-browser compatible that means it can work smoothly on any browsers and provides a flawless experience.
Author: CodeCanyon. Dependencies: WordPress 5. Terms of Usage. Join Us. Follow us on Twitter Be a fan on Facebook. Building a php script that automatically posts status updates on your wall requires the following steps:. First step is to download a general Facebook communication class from Glithub. Facebook only allows registrated apps to interact with Facebook accounts and pages. The next step is therefore to register your app. If everything is OK, you get to a registration conformation screen, where you get the two important informations: App ID and App Secret that you need in the next steps.
Next step is to build a small script that only has one purpose, identify itself with the new App ID and App Secret to your Facebook account, so you can allow it to directly communicate with your Facebook page.
This typically means that you need to provide a url to the website connected in the application. Now that your application has access to your Facebook account, and we have the general facebook.
Then create a new application. Call it whatever you want. Second: Download the PHP client. Dump it somewhere on your webhost, i. The easiest way to do this is to click the button generated by this code: be sure to fill in 'your app id' and set cookie to true!
Enables your application to perform authorized requests on behalf of the user at any time. By default, most access tokens expire after a short time period to ensure applications only make requests on behalf of the user when the are actively using the application.
This permission makes the access token returned by our OAuth endpoint long-lived. It doesn't depend on the Facebook SDK or anything. Simple PHP function to get facebook status. Another idea is to explore the Facebook Developer API library and see if that might give you anything you are looking for. Lastly, there used to be a way to get an RSS feed Mine ends up looking something like this:. Be sure to put in your Facebook ID and the access token you got from the app you created see Jens' post.
You can check the output of this script here. I have tried loads of tutorials over the last few days and none of them have worked. I think it may be due to facebook changing their api requirements. This is the only one I found that works at the moment:. Works great! How are we doing? Please help us improve Stack Overflow. Take our short survey.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more.
0コメント