Skip to content

Commit

Permalink
fix profile link
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang Dong committed Dec 21, 2015
1 parent dffacd6 commit fe4d83d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/flask/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def get_current_user():
# Not an existing user so get info
graph = GraphAPI(result['access_token'])
profile = graph.get_object('me')
if 'link' not in profile:
profile['link'] = ""

# Create the user and insert it into the database
user = User(id=str(profile['id']), name=profile['name'],
Expand Down

0 comments on commit fe4d83d

Please sign in to comment.