Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I kept getting this error after a fairly short period of time.
Facebook SDK threw an error: OAuthException: A user access token is required to request this resource. It is possible that your Facebook account cannot access the configured pages, if so please log in again in Facebook autopost configuration page.
On the config page my facebook account shows minus the pages, with a logout link that does nothing. I've tried logging in and out of facebook, it did clear for me once giving me the option to log back in but at the moment I seem to be stuck with this error.
Comments
Comment #1
e0ipsoThis is closely related to #1921590: Cannot get past error: Cannot ask for user accounts without an access token. You may need to reconfigure you Facebook app. This is basically Facebook telling you that you don't have your credentials in order.
Comment #2
marcus178 CreditAttribution: marcus178 commentedNot entirely sure if my problem was the same as the other issue, but here's what I think it might have been.
I was working on my development site but using the Facebook app that I use for my production site. I created a new Facebook app for testing purposes, and the only difference being the setting "Website with Facebook Login" and setting the url to my dev site.
So it has kept me logged in and no errors.
Comment #3
itshaseebanwar CreditAttribution: itshaseebanwar commentedGo in your site Admin -> configuration
Inside section webservices -> Facebook Autopost
Inside session handling tab clear the session and then you can try to login again.
For complete detail how to configure facebook autopost please visit our site:
http://www.thesstech.com/drupal-how-configure-facebook-autopost