Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix foursquare provider image_url problem

  • Loading branch information...
commit 64a6bf3550aa308ab36acb027553d620b42d21df 1 parent 8e8430a
@mattupstate authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  flask_social/providers/foursquare.py
View
2  flask_social/providers/foursquare.py
@@ -52,7 +52,7 @@ def get_connection_values(response, **kwargs):
api = foursquare.Foursquare(access_token=access_token)
user = api.users()['user']
profile_url = 'http://www.foursquare.com/user/' + user['id']
- image_url = user['photo']
+ image_url = '%s%s' % (user['photo']['prefix'], user['photo']['suffix'][1:])
return dict(
provider_id=config['id'],
Please sign in to comment.
Something went wrong with that request. Please try again.