Created
December 9, 2022 09:07
-
-
Save ritik1009/c8e14cddf53dd05e4c596dcbb570eb04 to your computer and use it in GitHub Desktop.
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
graph_url = 'https://graph.facebook.com/v15.0/' | |
def func_get_business_account_deatils(search_id='',instagram_account_id='',access_token=''): | |
url = graph_url + instagram_account_id | |
param = dict() | |
param['fields'] = 'business_discovery.username('+search_id + \ | |
'){followers_count,follows_count,name,biography,username,profile_picture_url,id, media_count,media{comments_count,like_count,media_url,permalink,user_name,caption,timestamp,media_type,media_product_type}}' | |
param['access_token'] = access_token | |
response = requests.get(url,params=param) | |
response =response.json() | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment