Skip to content

Instantly share code, notes, and snippets.

View MUGABA's full-sized avatar

MUGABA MUGABA

View GitHub Profile
@MUGABA
MUGABA / gist:fcd2a68c579e7980b9b89de70c9a2eeb
Created July 6, 2019 14:59
I have an issue with connect_via
@cust_bp.route('/api/v1/customers/facebook', methods = ['POST'])
def facebook_login():
if not facebook.authorized:
return redirect(url_for('facebook.login'))
account_info = facebook.get('account/settings.json')
account_info_json = account_info.json()
return '<h1>Your facebook name is @{}'.format(account_info_json['screen_name'])