Skip to content

Instantly share code, notes, and snippets.

@ntuaha
Created August 14, 2017 16:49
Show Gist options
  • Save ntuaha/7672f790917e057794b1feaa893613e8 to your computer and use it in GitHub Desktop.
Save ntuaha/7672f790917e057794b1feaa893613e8 to your computer and use it in GitHub Desktop.
查詢所有在同一個企業戶底下的Facebook ID 資訊
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