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

gdisconnect file produced error, KeyError: 'access_token' #25

Open
iainbriscoe opened this issue Dec 14, 2015 · 2 comments
Open

gdisconnect file produced error, KeyError: 'access_token' #25

iainbriscoe opened this issue Dec 14, 2015 · 2 comments

Comments

@iainbriscoe
Copy link

code copied as is produced the error

I resolved it by changing the first line from :
access_token = login_session['access_token']
to
access_token = login_session.get('access_token')

@azalea
Copy link

azalea commented Jan 27, 2016

The correct way to fix it is to add line
login_session['access_token'] = token
to fbconnect() function in project.py

@ilagace
Copy link

ilagace commented Apr 8, 2016

I tried the second solution (adding the line login_session['access_token'] = token) in my code but got the same original error.

The first solution is working for me (using the get() method).

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

3 participants