facebook graph api calls with appsecret_proof in python
问题 What is the right way of making graph api calls with appsecret_proof parameter in python? Is there any library that allows such thing? I was trying to use 'python for facebook' library but the documentation is literally nonexistent so I can't figure it out. 回答1: Here's how you could do that using the facebook-sdk: import facebook import hashlib import hmac def genAppSecretProof(app_secret, access_token): h = hmac.new ( app_secret.encode('utf-8'), msg=access_token.encode('utf-8'), digestmod