Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with App Authentication #595

Open
MD-CO opened this issue May 15, 2017 · 0 comments
Open

Issue with App Authentication #595

MD-CO opened this issue May 15, 2017 · 0 comments

Comments

@MD-CO
Copy link

MD-CO commented May 15, 2017

I'm attempting to authenticate my app via python, as instructed here: https://github.com/debrouwere/facebook-insights

`import facebookinsights as fi

this will launch a web browser to authenticate

pages = fi.authenticate(
client_id='your client id',
client_secret='your client secret',
)`

Whenever I attempt this, the browser opens up, asks me to authenticate, and I get the following message in my browser: 'Authentication flow completed. You may close the browser tab.'

However, in the actual python shell, I get the following error:
in process_token_request
raise KeyError(PROCESS_TOKEN_ERROR.format(key=bad_key, raw=r.content))
KeyError: 'Decoder failed to handle access_token with data as returned by provider. A different decoder may be needed. Provider returned: {"access_token":"[MY_ACCESS_TOKEN]","token_type":"bearer","expires_in":5183998}'

Not sure what the root of this issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant