javascript - Display public user's facebook posts on website


I want to display one particular user's wall on the person's website. If I use the Graph API:{id}/posts?limit=8&access_token={token}, it works for about 2 hours until the access token expires. What kind of solution would make it permanent? I understand that I need to use an app to achieve this, but can't find out how. A solution using either PHP or JavaScript is would be the best.

All suggestions are welcome!




You can extend a User Token to 60 days (more about that here and here, for example).

After that, you would need to refresh the Token, and you have to do that manually. User Profiles are not meant to be used for that, and you will not getread_stream approved in order to make it available for anyone who is NOT an Admin/Developer/Tester of your app. So this would be something only you can use.

You can show the feed of a Facebok Page though, there is an Extended Page Token that is valid forever. There is no User Token that is valid forever.

People are also looking for solutions to the problem: php - I can't send mails with PHPMailer in Openshift


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.