Skip to content

Instantly share code, notes, and snippets.

@RizqiEka
Last active May 29, 2022 01:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RizqiEka/638facc9e9b5ff0b158745d87b55dfc5 to your computer and use it in GitHub Desktop.
Save RizqiEka/638facc9e9b5ff0b158745d87b55dfc5 to your computer and use it in GitHub Desktop.
# Import Libraries
import requests
import json
import datetime
import pandas as pd
# Define Parameters Dictionary
params = dict()
params['access_token'] = 'XXXXXXXXXXXXXXXXXXX' # not an actual access token
params['client_id'] = '111111111111' # not an actual client id
params['client_secret'] = '000000000XXXXXXXXXXXX' # not an actual client secret
params['graph_domain'] = 'https://graph.facebook.com'
params['graph_version'] = 'v12.0'
params['endpoint_base'] = params['graph_domain'] + '/' + params['graph_version'] + '/'
params['page_id'] = '22222222222222' # not an actual page id
params['instagram_account_id'] = '33333333333' # not an actual instagram business account id
params['ig_username'] = 'galihputrala'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment