开发者

How can I read a Facebook fan page with the Graph API?

开发者 https://www.devze.com 2023-04-13 00:36 出处:网络
A few more specifics: We have a good amount of fans on my restaurant\'s page, but we\'d like to run our own website as well, with the same content (specials, etc.,) as Facebook.

A few more specifics:

We have a good amount of fans on my restaurant's page, but we'd like to run our own website as well, with the same content (specials, etc.,) as Facebook.

With that said, we'd like to continue posting our daily specials on Facebook, as about 3,000 people s开发者_如何学Cee those posts and we bring in a good amount of business from there.

I have a small PHP script I've written that can pull the posts off of the wall, verify who wrote them and look for a small #hashtag to verify that I want it posted on the main page of our website.

However, periodically my access token expires and, therefore, I suspect I'm not going about this correctly.

Does anyone have a good, reliable way to read posts from a Facebook fan page?

Thank you!


You can try changing Access Token expiry time with offline_access permission.

Facebook Permissions page mentions about offline_access;

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号