Merge pull request #1662 from malcm/patch-1

Verifying Facebook Graph API Calls
This commit is contained in:
Ben Darnell 2016-03-12 22:38:52 -05:00
commit 909852ca5f
1 changed files with 3 additions and 0 deletions

View File

@ -996,6 +996,9 @@ class FacebookGraphMixin(OAuth2Mixin):
callback=functools.partial( callback=functools.partial(
self._on_get_user_info, future, session, fields), self._on_get_user_info, future, session, fields),
access_token=session["access_token"], access_token=session["access_token"],
appsecret_proof=hmac.new(key=client_secret.encode('utf8'),
msg=session["access_token"].encode('utf8'),
digestmod=hashlib.sha256).hexdigest(),
fields=",".join(fields) fields=",".join(fields)
) )