daeiron
Member
Posted 3 months ago #
I get this error (after some time):
Fatal error: Uncaught OAuthException: Error validating access token: Session has expired at unix time 1332190800. The current unix time is 1339803350.
The session seems to be expired, token only lasts for 2 hours I think.
How can i fix this?
http://wordpress.org/extend/plugins/recent-facebook-posts/
daeiron
Member
Posted 3 months ago #
This is the exact message (after 2 hours):
Fatal error: Uncaught OAuthException: Error validating access token: Session has expired at unix time 1361556000. The current unix time is 1361557423. thrown in /home/wens/domains/wens.nu/public_html/wp-content/plugins/recent-facebook-posts/classes/facebook-php-sdk/base_facebook.php on line 1238
Renewing access token in admin panel solves it, but of course not what one wants every 2 hours.
Hi Daeiron,
Strange. The access token should renew itself everytime you log into WordPress. Did you check the "remember me" box at the login form to the WP Admin panel or ..?
daeiron
Member
Posted 3 months ago #
No the box isn't checked. But I think the problem is solved..
I previously linked the plugin to an already exisiting app on facebook, what I now did is create a new facebook app and link the plugin to the new app. Since then no problems.
BTW how often should one login to renew the token at least?(once a week, once a month?)
Thanks for your help