Reputation: 13
I have to automatic post on my facebook page wall. So far so good... but the access token keep expire. I did the automatic post with my App and with the Graph Explore and I have the same problem with both.
To post on facebook wall, I create a Cron job on my server, but after some hours the access token expire and I have to create a new one every time manually, and it's not the idea of automatic service :)
I read most of answers here with similar problem of mine, but can't find the answer already.
So, I just need a way to get a new access token, every time the cronjob call my php file.
Upvotes: 1
Views: 671
Reputation: 725
You could have the cron job email you an authorization link a day or two before the token expires. Using exchange_token you can get a 60-day token, so you only have to re-authorize it every other month.
Upvotes: 1