Python APIを使用してFacebookで友達の誕生日を取得したかっただけです
https://developers.facebook.com/tools/explorer/で「me/friends?fields=birthday」というクエリを試してみましたが、うまくいきましたが、私の Python コードでは「GraphAPIError: An active access token must be現在のユーザーに関する情報を照会するために使用されます。」
ここにコードを投稿しました:
import facebook
token = 'a token' # token omitted here, this is the same token when I use in https://developers.facebook.com/tools/explorer/
graph = facebook.GraphAPI(token)
fb = graph.request("me/friends?fields=birthday")
# while graph.request("me/friends") works well
print fb
誰かが助けますか?