Created
August 14, 2017 16:49
-
-
Save ntuaha/7672f790917e057794b1feaa893613e8 to your computer and use it in GitHub Desktop.
查詢所有在同一個企業戶底下的Facebook ID 資訊
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
fbid = [fbid] | |
url = "https://graph.facebook.com/v2.10/%s"%fbid | |
querystring = {"access_token":[token],"fields":"name,age_range,ids_for_apps,ids_for_pages"} | |
headers = {'cache-control': "no-cache"} | |
response = requests.request("GET", url, headers=headers, params=querystring) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment