Merge pull request #1662 from malcm/patch-1
Verifying Facebook Graph API Calls
This commit is contained in:
commit
909852ca5f
|
@ -996,6 +996,9 @@ class FacebookGraphMixin(OAuth2Mixin):
|
|||
callback=functools.partial(
|
||||
self._on_get_user_info, future, session, fields),
|
||||
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)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue