I have fb_autopost working wonderfully on my dev platform (shared code, unique db and url).
I have verified ALL modules and settings for all configurations (all modules and content times) are the same
I have reconfigured production to use dev FB app and dev to use prod FB app.

I cannot get my production site to work. I get the error "Cannot ask for user accounts without an access token" no matter what application or settings I use. All the settings work perfectly in the dev instance. The exact same settings in the prod instance generate the error.

Any ideas where I should look for the "problem"?

Comments

Jaysen ODell’s picture

I believe I have this resolved. I disabled all the drupal for facebook modules as well as autopost. I enabled autopost and configured it. Success. I then reenabled DfF and reconfigured. Everything works as expected.

I reviewed my dev notes and here's the difference. On my dev system I dumped the DB after getting DfF working. I then rebuilt the data store with only autopost enabled to make sure it did what I wanted. I then reenabled and configured DfF. Dev worked fine every time compared to prod which hasn't worked until today. There must be some basic incompatibility that requires autopost to be installed before DfF.

Jaysen ODell’s picture

Status: Active » Closed (cannot reproduce)

I continue to get the error but only in Chrome. I'm closing this as my immediate issue is resolved.

Jaysen ODell’s picture

I continue to get the error but only in Chrome. I'm closing this as my immediate issue is resolved.

sahaj’s picture

@Jaysen : getting the same error with Safari. Which other browser than Chrome are you using?
BTW, this is happening to me with Facebook OAuth, instead of Drupal for Facebook.

sahaj’s picture

Status: Closed (cannot reproduce) » Active
sahaj’s picture

Status: Active » Closed (fixed)

I had to reconfigure again autopost.

sonicthoughts’s picture

Issue summary: View changes

This exact scenario occurred with me too. enabled app, set up fine. disabled (and uninstalled.) reinstalled and get error "Cannot ask for user accounts without an access token". I tried to reconfigure everything but the error continues to appear.

boabjohn’s picture

Hi @sonicthoughts,
Same trouble here. Following actions seems to have cleared it:
drush updb (and clear all caches)
from the FB Autopost tab, log out of Facebook
Reload browser
Re-activate app from [List]
You should have to choose again what the app is allowed to do, and you should be forced to log back in to FB and choose what pages are to be targeted by the autopost app. Select and save.
At this point your error message in Drupal should be cleared.
Hope that helps!

sonicthoughts’s picture

Happened again using rules - just imported a rule and it displayed. does anyone know what it means?

e0ipso’s picture

Hi @sonicthoughts, just like @boabjohn suggested log out and log back in from Facebook using the FB Autopost in the Drupal admin pages.