Тёмный

Instagram Graph API Get Page/Account ID with Python 

Justin Stolpe
Подписаться 4,9 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@noorameera26
@noorameera26 2 года назад
Hi, if you by any chance see this comment, please help me as I'm really out of wits. T__T I've no idea why the request is returning empty data. Have made sure my ig business account has an admin access and other things but still couldn't solve them. Thanks for all your wonderful tutorials btw, learned a lot from you!
@thomassmith7529
@thomassmith7529 2 года назад
Hi Noor, I have the same problem. Did you find a solution?
@JMilton5
@JMilton5 2 года назад
Very good tutorials. The descriptions that Facebook has for permissions is confusing and seems to change. I couldn't get any data back until I added the "pages_show_list" permissions to my Access Token.
@tomprice2517
@tomprice2517 3 года назад
Great video man! It's a very clear and useful tutorial
@BharatUnwronged
@BharatUnwronged 3 года назад
Thanks a lot for the video, Can you guide me on how can I extract some of the fields (thumbnail_url etc) from an Instagram Post URL?
@justinstolpe
@justinstolpe 3 года назад
I think this is the video I have for doing that ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_L6cSmnPZY8.html
@TestUser645
@TestUser645 3 года назад
Man, you've become immortal by providing all these tutorials. For a beginner looks like Instagram doesn't want people to work with their API as they do not provide clear documentation or links to the documentation pages at least. Thank you!
@justinstolpe
@justinstolpe 3 года назад
Thank you!
@jajupmochi
@jajupmochi 6 месяцев назад
So true🤣
@DataPro360
@DataPro360 3 года назад
Justin, first of all congratulations for teaching and passing on your knowledge, I am very grateful to you. I need a little help, when I run the program get_user_pages.py the error returned is (Traceback (most recent call last): File "get_user_pages.py", line 29, in print (response['json_data']['data'][0]['id']) # display id KeyError: 'data') I've already validated token, app id, secrets id and that's correct. when running the get_long_lived__access_token and debug_access__token.py scripts, any suggestions. I already tested the program with another insta account and was successful, I don't know what to do anymore. Thank you Fernandes Brazil
@justinstolpe
@justinstolpe 3 года назад
If it works with another account there might be an issue with credentials, also try dumping out the raw response and see if you get any errors right from the api
@chickgirl393
@chickgirl393 4 года назад
Great Video! Can you please link which parts of the Facebook documentation go in reference to this video?
@justinstolpe
@justinstolpe 4 года назад
Here is where you can start with the documentation developers.facebook.com/docs/instagram-api/getting-started
@simvalecha
@simvalecha 4 года назад
hey are you able to do this for other business accounts or only your own?
@justinstolpe
@justinstolpe 2 года назад
you need a user access token for each user you wan't to get a page id and account id for.
@deepanshusingh9773
@deepanshusingh9773 Год назад
what to do if i want to search using public reel link? I just have a link of reel and wants it metadata, how to get it
@justinstolpe
@justinstolpe Год назад
There is no endpoint for getting post data with a link to the post. You need the id in order to query for post data.
@oneschuldi
@oneschuldi 11 месяцев назад
Thanks for this amazing series! I want through the access token (and longlived token) but I'm not getting any page id while querying "me?accounts" the response returns empty for some reason. The app is connected to a FB page... Do I need to publish the app or verified business account? There is no "manage_pages" permissions now in V18 , there is pages_show_list but it doesnt help. Thanks
@justinstolpe
@justinstolpe 11 месяцев назад
Thanks for watching! and yeah manage_pages has been replace with new ones here are the docs for the update developers.facebook.com/docs/graph-api/changelog/version7.0/developers.facebook.com/docs/graph-api/changelog/version7.0/
@TheAbhimait
@TheAbhimait 11 месяцев назад
I am facing the same issue. Were you able to resolve this?
@videoexplosion919
@videoexplosion919 4 года назад
Hey i got nothing here response['json_data']['instagram_business_account']['id']) KeyError: 'instagram_business_account' u know why ?:с
@justinstolpe
@justinstolpe 4 года назад
That means you probably do not have the correct permissions set on your access token if the response is empty.
@jajupmochi
@jajupmochi 6 месяцев назад
Thank you again! You saved my day! I did not expect such a detour to get a ins user id... That is just weird... PS: I added "pages_show_list" and "business_management" permissions to make it finally work.
@batistaqj
@batistaqj 6 месяцев назад
Brother your instagram id?
@naheliegend5222
@naheliegend5222 3 года назад
What is the difference between the facebook-graph-api and the instagram-graph-api? You say you use the instagram Graph API but the url is graph.facebook.. ?
@justinstolpe
@justinstolpe 2 года назад
yeah FB/IG api can be confusing. You need the user to authenticate with your faebook app that has the IG permissions granted to get the user access token. Then you can use that user access token to make calls to the instagram graph api. You are correct though that the instagram graph api endpoint is graph.facebook.com which can be confusing.
@pratyushbehera7156
@pratyushbehera7156 4 года назад
Hello Justin, Thanks a lot for the Video! Here I'm getting the Facebook page-id but not the instagram_business_account id. Could you please help?
@justinstolpe
@justinstolpe 4 года назад
You need to make sure your account is connected to the facebook page you are using.
@ezpcIndonesia
@ezpcIndonesia 4 года назад
hey justin, quick question so i noticed the base endpoint is graph.facebook, why not use graph.instagram and if i have access token for graph.facebook can i use it for graph.instagram as well?
@justinstolpe
@justinstolpe 4 года назад
You might be able to use either or but I have not verified that.
@mrdupreez9061
@mrdupreez9061 3 года назад
Hey Justin, Sorry if this is a stupid question but where do you get the API endpoint text that you start off your functions with? At the moment so far I've just copy pasted your text for my scripts but I want to do different things now. I'm sure I'm being stupid but you say you copy it from facebook and I can't find it anywhere??
@justinstolpe
@justinstolpe 3 года назад
Here is the documentation for the instagram graph api developers.facebook.com/docs/instagram-api/guides
@avivyl1234
@avivyl1234 4 года назад
Hi great video Justin I was using the Facebook graph API and came up with the inability of getting the friends of the user i am testing. I'm trying to say is, that it gives me the total amount of the friends but not the actual friend list, so if you have any solution to that let me know, great channel BTW ill definitely subscribe! cheers
@avivyl1234
@avivyl1234 4 года назад
i saw it was possible in older videos where they were using v2.0+ so any insights on that as well, thanks
@justinstolpe
@justinstolpe 4 года назад
Thanks! Right now the Instagram Graph API only allows for getting the followers count. In the old API you used to be able to get the actual list but with the newer version they have removed this ability :( I am hoping the new API at some point will have this ability!
@avivyl1234
@avivyl1234 4 года назад
@@justinstolpe can't a hook be written? A fetch-hook
@justinstolpe
@justinstolpe 4 года назад
@@avivyl1234 If you are trying to get a list of followers for an Instagram account there is no enpoint on the new API that allows for this
@avivyl1234
@avivyl1234 4 года назад
@@justinstolpe a list of friends from facebook. Can be done?
@RajeshSharma-jh4bi
@RajeshSharma-jh4bi 4 года назад
How Can get the profile details of Instagram ?, and how to post the message or photos on my Instagram account ? how to get the total number of likes ,comments,and shares ?
@justinstolpe
@justinstolpe 4 года назад
I have vidoes on getting stats, check out my instagram graph api playlist. As far as posting to instagram, that is not possible with the api
@efemete8556
@efemete8556 4 года назад
Hello justin can i get another instagram page's id (not mine) with this method?
@justinstolpe
@justinstolpe 4 года назад
The only way to get page ids for other users is to have them authenticate with your application and then use the access token for that user.
@ericlima1260
@ericlima1260 3 года назад
is it necessary to have a facebook page associated with a business instagram account to get the instagram user id?
@justinstolpe
@justinstolpe 3 года назад
Yeah the API requires this
@sanjuwa2677
@sanjuwa2677 4 года назад
Can we post photos with API ?
@justinstolpe
@justinstolpe 4 года назад
Currently no, the content publishing section is in a closed beta.
@killianmcshane5136
@killianmcshane5136 4 года назад
Can we upload mp4 posts automatically from the Instagram Graph API to a business account?
@justinstolpe
@justinstolpe 4 года назад
At this time the API does not allow for this.
@killianmcshane5136
@killianmcshane5136 4 года назад
@@justinstolpe That's a shame, do you expect this functionality to be implemented in the future?
@justinstolpe
@justinstolpe 4 года назад
@@killianmcshane5136 Since it is in a closed beta right now, I would think at some point they will open it up.
@killianmcshane5136
@killianmcshane5136 4 года назад
@@justinstolpe Oh, I see - hopefully sooner rather than later then, haha. Thanks for the quick responses
@sudhanshutewari9747
@sudhanshutewari9747 4 года назад
hy justin i am not able to get page id i am getting a blank response. and can you tell me can we get other users post data ??
@justinstolpe
@justinstolpe 4 года назад
Make sure the user is the admin of a Facebook page
@sudhanshutewari9747
@sudhanshutewari9747 4 года назад
@@justinstolpe yeah now i am getting .. but till now i am not able to get other user post data is it possible or not with Instagram graph API??
@justinstolpe
@justinstolpe 4 года назад
@@sudhanshutewari9747 If the IG account is a business account and they have granted access to you app, then you can access their data
@sudhanshutewari9747
@sudhanshutewari9747 4 года назад
​@@justinstolpe means that account data which i fetching records if they give me permission to my app then i will do this otherwise i will not ??? so that means others person which has IG account so why will he give me access to my app ?? can you please make of video of them if possible please justin
Далее
Instagram Graph API Access Tokens with Python
15:31
Просмотров 38 тыс.
Instagram Graph API Webhooks
15:33
Просмотров 15 тыс.
Свадьба Раяна Асланбекова ❤️
00:12
7 Cryptography Concepts EVERY Developer Should Know
11:55
Facebook Graph API Login with PHP
26:20
Просмотров 15 тыс.
Instagram Graph API Get User Posts and Account Info
17:24
What are Digital Signatures? - Computerphile
10:17
Просмотров 336 тыс.
Instagram Graph API Get Users Stories
10:53
Просмотров 18 тыс.
Instagram Graph API Access Tokens
12:58
Просмотров 85 тыс.