I have an applicatoin that gets the birthday of the users threw a form and than it's supposed to write on there wall on there birthday.

Is this possible? even if they visit the app today and there birthday is in 200 days? Because I know the token only lasts 60 days and I want to post with there fb profile.

If I try to post the message on my fan page (where I can get a token that lasts forever) and tag them it doesn't work, because facebook doesn't allow tagging threw the api, you have any suggestions how can I achieve this?

有帮助吗?

解决方案

For posting a feed on the user's wall, you can use the APP Access Token instead of the extended user token you are saving.

App Access Token

其他提示

Facebook removed the offline_access permission a couple of years back:

https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal/

"Note: The user must access your application before you're able to get a valid "authorization Code" to be able to make the server-side OAuth call again. Apps will not be able to setup a background/cron job that tries to automatically extend the expiration time, because the "authorization code" is short-lived and will have expired."

Basically you need an Authorization code to get a new token, and you can only get that if the user actively uses your app.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top