Тёмный

Instagram Graph API Access Tokens 

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

In this video we learn how to get an access token for use with the Instagram Graph API. The access token lasts for 60 days and can be used to have full control over social interactions on an Instagram account as along as the Instagram account is set to either a professional business/creator.
--
Code on GitHub ⇛ github.com/jst...
--
Live Demo ⇛ justinstolpe.c...
--
Discord ⇝ / discord
TikTok ⇝ / justinstolpe
GitHub ⇝ github.com/jst...
Instagram ⇝ / justinstolpe
Twitter ⇝ / justin_stolpe
LinkedIn ⇝ / justin-stolpe-3bb05426
Reddit ⇝ / jstolpe
Twitch ⇝ / jstolpe
Facebook ⇝ / stolpejustin
Website ⇝ justinstolpe.com
SoundCloud ⇝ / justin-stolpe
--
#programming #developer #coding

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

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 243   
@justinstolpe
@justinstolpe 3 года назад
Publishing Content with the Instagram API is now possible! Here is how to do it -> ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1lKzu3UVJso.html
@SuperMa06
@SuperMa06 3 года назад
Hello, Justin. Glad to know that it's now possible. Thanks.
@Ilohimushka
@Ilohimushka 6 месяцев назад
everything zuckerberg touches gets to complicated lizard hell for developers
@satyamjha_2
@satyamjha_2 Год назад
i feel a lot has changed from the API end after the Meta acquisition. I've looked at a lot of other articles/video, and there's one thing that has been confusing me and i couldn't find out about in this context was "Valid OAuth Redirect URIs". Can anybody help me understand what that is and how to get it?
@adarshxd6274
@adarshxd6274 8 месяцев назад
hey...I'm also stuck wiht this. It's been over 5 months since you posted this comment...may you please provide me solutions if you arrived at any?
@satyamjha_2
@satyamjha_2 8 месяцев назад
@@adarshxd6274 hi I enquired a bit into it. I realised that now , you have to be registered as a company and show proper address proof and other documents for it (which an individual doesn't have) to get the permissions. So ultimately this route can't be taken at all. If I'm wrong now or a few months later I would be grateful if someone could Correct me.
@timur.shhhhh
@timur.shhhhh Месяц назад
I think this is the url to which Facebook will redirect you after registration. For example, if you use Google and OAuth (like protocol/library), then at any time the site can call OAuth, which will redirect the user to a pre-prepared url with the Google domain for registration, that is, only the Google site will have access to your password and account, but for how long Google doesn’t know where you came from, then the developer indicates in advance where to redirect the user after successful registration, and Google also adds a token to the query-params, and your personal site, having received a request from a user at this url, can receive some data about you from Google using the token from url and OAuth
@flippingWebsites
@flippingWebsites 3 года назад
Literally spent 2 days trying to figure this out. Thanks!
@justinstolpe
@justinstolpe 3 года назад
Glad it helped you out!
@kamaadhitia9745
@kamaadhitia9745 4 года назад
waiting for post content with instagram api hehe
@justinstolpe
@justinstolpe 2 года назад
Here is how to post content ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-j65W-L-gQs4.html
@indikaaruna7548
@indikaaruna7548 3 года назад
I watched several videos published by you. It's well explain and understandable. Thanks for your great help. This video is more valuable due to difficult to find a good tutorial for Instagram. Is this the way to implement login with Instagram? How to use unlike instagram account login with Instagram ?
@justinstolpe
@justinstolpe 3 года назад
Thank you! There is no "login with instagram", instead you need to implement the login with facebook. Check out my channel for videos on logging in with facebook.
@andresalonso1066
@andresalonso1066 4 года назад
Thank you very much, I haven't found any video about graph api
@justinstolpe
@justinstolpe 4 года назад
You are welcome! Thanks for the comment!
@newbeeontheblock
@newbeeontheblock 3 года назад
Thanks for a very helpful video topics for coding😀
@syedfahadabdullah6032
@syedfahadabdullah6032 3 года назад
sir where i can find my "valid oauth redirect uris"??
@justinstolpe
@justinstolpe 3 года назад
the redirect uri is where IG will send the user after they authorize your app so it should be the url to your webpage where you will handle and get the access token after the user has authorized through IG
@ln7187
@ln7187 3 года назад
@@justinstolpe how to set this webpage up?
@MrTheripper7
@MrTheripper7 4 года назад
Why i get this error message: Undefined property: Facebook\Exceptions\FacebookSDKException::$getMessage in obtaining_access_token.php file
@MrTheripper7
@MrTheripper7 4 года назад
the answer is 'Graph returned an error ' . $e->getMessage(); and 'Facebook SDK returned an error ' . $e->getMessage();
@MrTheripper7
@MrTheripper7 4 года назад
now the error is Facebook SDK returned an error Cross-site request forgery validation failed. Required param "state" missing from persistent data.
@justinstolpe
@justinstolpe 4 года назад
@@MrTheripper7 with the persistent_data_handler set to session you should not need state. But, you can try adding a 'state' => 'value' to the creds array and see if that helps.
@marquizzo
@marquizzo 3 года назад
Thanks for this video, but JFC, I cannot believe Facebook makes it so close to impossible to get a 60-day access token. Why can't we just request the token from our Facebook account dev settings? We have to be PHP experts, install their SDK, go through 5 access-token hurdles... WTF?! Why make it so difficult for web developers?
@justinstolpe
@justinstolpe 3 года назад
Yeah they don't make it easy and it sure is annoying!
@ottersdangerden
@ottersdangerden 3 года назад
Wow this api is quite obtuse... api review process is about the same feeling as getting sand rubbed in your eyes. I am not a happy camper at the moment...
@justinstolpe
@justinstolpe 3 года назад
yup...been there multiple times
@Matthew-ld5zk
@Matthew-ld5zk 2 года назад
Thanks for your good tuts. I think instagram updated api cause my code worked a few days ago and not working today. Can you check and remake this part?
@justinstolpe
@justinstolpe 2 года назад
Might be your access token expired, not sure what your error is though.
@afuaayiku8669
@afuaayiku8669 2 года назад
Hi Justin, how would I go about this differently if I just wanted to collected users' media and media data, without the whole facebook login and all that
@justinstolpe
@justinstolpe 2 года назад
Here is my newest video on gettting media for a user I think it will help you ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8tu4DPSIQyA.html
@lovasoaILAY
@lovasoaILAY Месяц назад
Thank you very much for this heplfull tutorial. So, I have an issue because I can't get pages_show_list and instagram_basic in permissions list in Permissions and Features section. I have created app with consumer type by adding Facebook login product to this app. How can i solve it please?
@justinstolpe
@justinstolpe Месяц назад
Go check out my instagram graph api php sdk playlist it has some updated videos for access tokens that have changed since this video.
@alejo0789
@alejo0789 3 года назад
Thanks very useful, I have a question it is possible to make a Facebook login and obtain data form basic display Instagram api ?
@justinstolpe
@justinstolpe 3 года назад
For the basic api you would need to use the authroization dialog and get a user access token for use with the basic display api
@rushikeshkothapalli2183
@rushikeshkothapalli2183 3 года назад
Hey, Thank you so much. Can you please let me know how add multiple images using excel
@justinstolpe
@justinstolpe 3 года назад
Hey! Thanks for watching, not sure about excel but you can check out my video on posting content which might help you out.
@matthewdornfeld55
@matthewdornfeld55 Месяц назад
The video starts off with "click the link", but it doesn't explain how to get that link. It would be helpful if there was an explanation for that.
@justinstolpe
@justinstolpe Месяц назад
The intro is just a demo. After that the whole video is from scratch how to get to that demo. The link part though starts at about here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dEDKOcPuXlU.htmlsi=nJoWm5cYz2Fh7tgq&t=398
@mordye13
@mordye13 2 года назад
Great video Justin! Can we get a little more clarification on obtaining the token and the redirect URI? I'm trying to recreate this on my own computer and trying to figure out how to approach this/
@justinstolpe
@justinstolpe 2 года назад
Thanks! The redirect uri it where Facebook will send the user after they have authorized your application. They also add on get variables which you then use to generate the users access token. Here is the flow hope it helps! 1. User on your login page clicks "login with FB" 2. Users is taken to FB and authenticates with your app. 3. Facebook sends the user to your redirect uri with more get vars. 4. You use the get vars to generate a user access token.
@mordye13
@mordye13 2 года назад
@@justinstolpe Got it. I am just trying to do this for myself and get a token so I can post to Instagram from my python script. Is there a simpler way to do this? I don't have a website to use for the URI.
@justinstolpe
@justinstolpe 2 года назад
@@mordye13 ah, In that case it is very easy. You can generate an access token with the facebook graph api explorer tool developers.facebook.com/tools/explorer/
@mordye13
@mordye13 2 года назад
@@justinstolpe Awesome! Any idea how long this access token is valid for? I plan on running my script to post once a day.
@justinstolpe
@justinstolpe 2 года назад
@@mordye13 once you create a token there is a debug token button you can click and then you should be able to click on extend the tokens lifetime
@sgiraldo
@sgiraldo 3 года назад
Thanks for the tutorials Justin, I really appreciate. I'm trying to implement the hashtag search inside a client's web project and I'm wondering the roundabouts for not needing the continuous login on Facebook. Do you think it could be possible to refresh the long live access token, once I linked the app for the first time, using the "refresh_access_token" api ?
@justinstolpe
@justinstolpe 3 года назад
Thanks! Yes, refresh the long lived token so it does not expire.
@wantstudy8030
@wantstudy8030 3 года назад
Thank you very much
@sergey_zatsepin
@sergey_zatsepin 3 года назад
Thx for video! And how long-live token should be refreshed after ~60 days? Again with same way(login -> get short -> get long)?
@justinstolpe
@justinstolpe 3 года назад
Yea but there is a refresh endpoint where you can simply exchange the current long token for a new long token if the current long token is not expired.
@lucacillario95
@lucacillario95 3 года назад
The refresh endpoint belongs to Instagram Basic Display APIs. I use the the graph apis because i need to post contents... But I cannot find a way to refresh long live tokens. Am I missing something?
@mochamadrizkypradana680
@mochamadrizkypradana680 3 года назад
Sir, I want to ask, where do I get Valid Oauth Redirect URIs? Thank you
@justinstolpe
@justinstolpe 3 года назад
The redirect uri is simply the URL for IG to send the user back to after they authorize your application. So, it should be something like www.yoursite.com/auth. Then after the user authorizes your application, IG would redirect them to www.yoursite.com/auth?code={code} so you can use the code to genereate an access token.
@adityaroy3211
@adityaroy3211 3 года назад
@@justinstolpe what to do if I am trying to use this api in app ?? URL doesn't exist there what to do then please help..
@electronsauce
@electronsauce 3 года назад
Hey thanks a lot man! I had everything setup working with FB Graph API for Facebook. This (and another video of yours) quickly helped me out to get Instagram authenticated. I was hoping it would just auto post to Insta since I have it set to do so for Facebook but I guessssss I have to implement that too :) Subbed!
@SaketAnandPage
@SaketAnandPage 10 месяцев назад
Currently Instagram Graph Api and Basic Api cant be in 1 product then how do we use access token for graph api?
@justinstolpe
@justinstolpe 10 месяцев назад
check out my new playlist on instagram graph api
@mohammadrezasamavat7118
@mohammadrezasamavat7118 2 года назад
Does this SDK work with the new API version?
@justinstolpe
@justinstolpe 2 года назад
yeah it should
@dineshprajapati902
@dineshprajapati902 4 года назад
how to post images and videos on instagram account. Did you make any video regarding this. If yes then please share me link
@justinstolpe
@justinstolpe 4 года назад
The api currently does not allow for posting of images/videos.
@dineshprajapati902
@dineshprajapati902 4 года назад
@@justinstolpe Thanks for reply. Will this facility available in future?
@justinstolpe
@justinstolpe 4 года назад
@@dineshprajapati902 I am not sure it it will be, we will have to wait and see.
@enzocresus555
@enzocresus555 3 года назад
hello! great an thanks again Justin! Is it possible to also get the expire date token's..?.. $accessToken->getExpiresAt() ...not working....
@naheliegend5222
@naheliegend5222 2 года назад
8:48 there is no instagram business account shown at my page. Why? I connected one to my Facebook page...
@naheliegend5222
@naheliegend5222 2 года назад
solved it by connecting a instagram account who exists for a while and not a fresh created account
@Spollo22
@Spollo22 4 года назад
Good video but you jump a lot of things that I really don't know where you get there! like the PHP file link, and after that I get lost for complete, not a good video for rookies that are trying to learn.
@justinstolpe
@justinstolpe 4 года назад
let me know, what PHP file link are you talking about? what else am I jumping that you do not know how to get? here to help :D
@thomasalias8492
@thomasalias8492 4 года назад
@@justinstolpe You jumped passed the part where you CD'd into a folder that you didn't mention up until that point. What folder?
@justinstolpe
@justinstolpe 4 года назад
@@thomasalias8492 cd into your web root directory to where your code is located. In my case I am in my www/blog_code/instagram_graph_api/ folder. Code is also on github :)
@brishnanader6944
@brishnanader6944 4 года назад
@@justinstolpe hi Justin, I totally agree with Giomar. I never worked with API in general and I need to learn how to use Instagram Graph API for a project, so I would like to ask you if you can make a video where you can explain in steps. Like Giomar mentioned you jump for example from 44 to 32 but I don't know why
@jindev4901
@jindev4901 4 года назад
Really nice video. Is there anyway to post instagram using api?
@justinstolpe
@justinstolpe 4 года назад
Thanks! Posting to Instagram is currently in closed beta developers.facebook.com/docs/instagram-api/guides/content-publishing
@dperezc88
@dperezc88 2 года назад
Thanks Justin!, Wath if I don't hace a valid OAuth tu put? does it mean I can't get permissions?
@anascharfi4452
@anascharfi4452 4 года назад
First, good job and thanks for the videos really helpfull but please can you give us a videos on how to manipulate that api with python. Thanks.
@justinstolpe
@justinstolpe 4 года назад
I am not python master :) but I can look into this
@jesusgonzalez7059
@jesusgonzalez7059 2 года назад
I know this video is two years old and I'm wondering if that's the reason it doesn't work. When I click on Login to Facebook, I'm sent to FB, but instead of it opening a dialog box to sign into my account I get a 'Sorry, something went wrong.' page on Facebook. Any new current updates would be appreciated.
@justinstolpe
@justinstolpe 2 года назад
Not sure what the issue was but seems to work now when I try to login with my fb account and authorize my app.
@mikenordik
@mikenordik 2 года назад
Did you solve it?
@mosoleimaniyun9601
@mosoleimaniyun9601 4 года назад
Thank you so much.
@MehmetBOZKURTEvil
@MehmetBOZKURTEvil 3 года назад
thanks for everything
@justinstolpe
@justinstolpe 3 года назад
thank you!
@hodakhodabakhshi4164
@hodakhodabakhshi4164 2 года назад
Hi, Thanks for useful videos. Does it work just for facebook developer accounts?I mean when I test it with a non develover facebook account, facebook login doesn't ask permissions.
@yesman4005
@yesman4005 3 года назад
just tried this out for school project, thank you so much!!!
@PraveenKumarkimi
@PraveenKumarkimi 3 года назад
Is it loading for you
@yesman4005
@yesman4005 3 года назад
@@PraveenKumarkimi yes, I just tried it last week it works
@PraveenKumarkimi
@PraveenKumarkimi 3 года назад
@@yesman4005 yeah it's working for me too.. I got error with autoloader
@yesman4005
@yesman4005 3 года назад
@@PraveenKumarkimi couldn’t it be the path? I have problem while loading autoload.php too, I simply change the naming of the path 😆
@PraveenKumarkimi
@PraveenKumarkimi 3 года назад
@@yesman4005 i found error because of composer getloader function, so I installed composer files & fb sdk using terminal.. & it worked
@timsweeney564
@timsweeney564 4 года назад
Hey Justin, great video really helpful we're just migrating to the Graph API - I can't find anything any more about how to get permissions to post directly to Insta, do you have any insights?
@justinstolpe
@justinstolpe 4 года назад
Yeah right now there is no endpoint for actually posting content through the api
@jomclassifieds7446
@jomclassifieds7446 2 года назад
Thanks, Justin, how to get the access token expiry days?
@Himthere31
@Himthere31 10 месяцев назад
Thanks for the helpful video! I have a question about 8:47 When I go through the process of logging in with an Instagram business account, the UI only mentions "Instagram professional accounts". I'm fairly confident that my IG account is of type business, since I'm able to make posts onto Instagram with the graph API. The permissions I'm using are instagram_basic, pages_show_list, business_managament and instagram_content_publish I've also looked through the docs but I've never managed to fix this issue. Do you have any insight on how to fix this?
@brenosantin9739
@brenosantin9739 2 года назад
Hi Justin. i’m just building a react website and want to show someone’s posts in my page. should i do all this stuff? do i have to create a backend for this react website i’m doing? Actually i’ve made it with my own account but the goal is doing it with others account.
@sophieliu9410
@sophieliu9410 4 года назад
so great!!!
@akshaydhar5970
@akshaydhar5970 Год назад
hey i m new to this what text editor you r usinhg?
@justinstolpe
@justinstolpe Год назад
sublime text is the editor
@bharatrajsingh2182
@bharatrajsingh2182 4 года назад
I need to get latest insta posts attached to a hashtag.....i checked their documentation for that....but how to get redirected URI and hashtag id....i'm not getting..can you plz help?
@alex741321
@alex741321 3 года назад
Hi how would you do if you want to use the Instagram Graph API for a swift iOS application?
@Jann-Aron
@Jann-Aron Год назад
Do you need a domain for this to work?
@aerrometry1151
@aerrometry1151 3 года назад
I am having an issue, it is giving me an error for not having polyfills.php (... Facebook/polyfills.php): failed to open stream: No such file or directory...)
@justinstolpe
@justinstolpe 3 года назад
Might need to do a composer install/update. That file is in the vendor folder.
@MaximRyabukhin
@MaximRyabukhin 3 года назад
Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at:
@justinstolpe
@justinstolpe 3 года назад
The manage_pages has been deprecated here is the docs on the new permissions developers.facebook.com/docs/pages/overview/permissions-features
@syedfahadabdullah6032
@syedfahadabdullah6032 3 года назад
sir I'm facing this error "Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions ". while redirecting to facebook for acess token ...
@justinstolpe
@justinstolpe 3 года назад
The manage_pages has been deprecated here is the docs on the new permissions developers.facebook.com/docs/pages/overview/permissions-features
@oktadoputra872
@oktadoputra872 3 года назад
can i extend my instagram graph api accessstoken with long live token for 60 days?
@justinstolpe
@justinstolpe 3 года назад
Yeah you can upgrade it to 60 days that is the max.
@oktadoputra872
@oktadoputra872 3 года назад
@@justinstolpe thanks justin!!
@oktadoputra872
@oktadoputra872 3 года назад
@@justinstolpe how can i get the url to extend the accesstoken?
@nathernal7332
@nathernal7332 3 года назад
I cannot login to the facebook app. I am stuck in the Valid Oauth Redirect URIs. How can I follow your tutorial without having my own website? I tried to use localhost but facebook doesn't allows me to do it.
@justinstolpe
@justinstolpe 3 года назад
Make sure your application is in development mode and localhost should work. You might also want to try https on localhost. I have a video for it ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lDRdewhH_vg.html
@ZinkZoodles
@ZinkZoodles 2 года назад
How can I go about refreshing the access token? Should I do so every time I interact with the API, or would that be abuse?
@justinstolpe
@justinstolpe 2 года назад
everytime would be okay
@sezaitunca9077
@sezaitunca9077 3 года назад
Hi Justin How can I extract any Facebook groups data.? Could you send me any API or tools. thanks
@justinstolpe
@justinstolpe 3 года назад
I have not used the api for groups before but might look into it in the future. Here is the link to the documentation developers.facebook.com/docs/groups-api/
@puturro
@puturro 3 года назад
this is great. but I wonder why I get Invalid Scopes: instagram_basic
@justinstolpe
@justinstolpe 3 года назад
Sounds like you need to add the permission so your app
@murodparmonov5295
@murodparmonov5295 4 года назад
Thanks mate. You helped.
@justinstolpe
@justinstolpe 4 года назад
Glad to hear it!
@LucasOsse-b7y
@LucasOsse-b7y Год назад
Thank you so much for these videos! Is it possible to use this API to send a Direct message to a user's PM? With triggers such as user likes a post, my app sends him a direct message.
@justinstolpe
@justinstolpe Год назад
The api does not allow for sending DM at this time.
@LucasOsse-b7y
@LucasOsse-b7y Год назад
@@justinstolpe Here's the thing though, I've seen a company's instagram post where if you liked it, you get a DM from them automatically. Manychat also allows you to do it for a fee. How did they do it?
@jatin_9911
@jatin_9911 3 дня назад
@@LucasOsse-b7y bro u get this ??
@jatin_9911
@jatin_9911 3 дня назад
@@LucasOsse-b7y i am also working on the same functionality
@ariefg9006
@ariefg9006 3 года назад
I have business instagram account but it doesn't have facebook account. how do i get the access token?
@justinstolpe
@justinstolpe 3 года назад
The business IG account needs to be admin on a facebook page in order to connect.
@sercanakdeniz1850
@sercanakdeniz1850 4 года назад
Hello Justin. I'm a student and new to the APIs. I am using Instagram product instead of Facebook Login and I am confused about should I still do all the steps about Facebook Login. (because it's the only thing we're making differently.) Without it, I managed to get the authorization code but I'm failing to obtain short lived access token. I'm facing an error, 'Invalid platform app'. Well, I'm not using php and I tried to make a POST request both from Postman and HTML form POST method but same error in both ways.
@jihadhasan1151
@jihadhasan1151 2 года назад
Hi sir, currently it's not working. also I've checked your live demo, there have a blanked page. can you fix it?
@Matthew-ld5zk
@Matthew-ld5zk 2 года назад
Same here for me. Worked a few days ago but not today
@jihadhasan1151
@jihadhasan1151 2 года назад
​@@Matthew-ld5zk I've tried all the ways. But I can't solve it
@justinstolpe
@justinstolpe 2 года назад
@@jihadhasan1151 Maybe your access token has expired? Hard to say though without knowing the exact error message the api is returning.
@jihadhasan1151
@jihadhasan1151 2 года назад
@@justinstolpe it's a access token generator script. so if i create first then it will be expired. By the way, When I download your github file and run it with my site then it's give me some error. of course I've changed app id and app secret
@justinstolpe
@justinstolpe 2 года назад
@@jihadhasan1151 There should be an error in the response which can help figure out what the issue is.
@novartisnk9684
@novartisnk9684 Год назад
is there any sdk available for Python?
@justinstolpe
@justinstolpe Год назад
Not that I know of
@novartisnk9684
@novartisnk9684 Год назад
@@justinstolpe thanks for replying 🙏 Are Facebook sdk and meta business sdk different?
@justinstolpe
@justinstolpe Год назад
@novartisnk9684 yeah for getting access tokens for a user you need to authenticate through fb login
@timur.shhhhh
@timur.shhhhh Месяц назад
is there a library for js or python?
@justinstolpe
@justinstolpe Месяц назад
no official one but you might be able to find some unofficially on github
@timur.shhhhh
@timur.shhhhh Месяц назад
@@justinstolpe is it safe? I don’t want to lose account or have it banned
@justinstolpe
@justinstolpe Месяц назад
@@timur.shhhhh I have not looked any up
@sarthaksrivastava5055
@sarthaksrivastava5055 4 года назад
I have one question. Only my insta account should be business or every user connecting their instagram with me must also be business?
@justinstolpe
@justinstolpe 4 года назад
All the accounts you want to use the graph api oh need to be business.
@ibrahimsenn7
@ibrahimsenn7 3 года назад
Hi, when i click to "Login With Facebook" link in obtaining_access_token.php, Facebook shows me an error like that: "Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions" How can i fix it?
@ibrahimsenn7
@ibrahimsenn7 3 года назад
Is there anyone who can help me?
@justinstolpe
@justinstolpe 3 года назад
@@ibrahimsenn7 The manage_pages was replaced with six other permissions in late May developers.facebook.com/docs/permissions/reference/manage_pages/
@shaistanazar4457
@shaistanazar4457 4 года назад
@Justin Stolpe we are getting instagram gram insights that is connected to our fb page but can we get insights from other's business accounts e.g.,getting monthly visitors of someone's business account?please help me i am stuck on this from half month 😢😢😢
@justinstolpe
@justinstolpe 4 года назад
To get insights on other accounts, that account needs to authenticate with your application.
@shaistanazar4457
@shaistanazar4457 4 года назад
@@justinstolpe according to documentation instagram accounts connected to fb page as admin ' s insights can be accessed and only 5 admins are allowed i want insight of every influencer who is loggedin to my website , if you help me i will gratefulfor you. here is link to that guidelines developers.facebook.com/docs/instagram-api/overview#pages developers.facebook.com/docs/instagram-api/overview#tasks
@wiemlimem8221
@wiemlimem8221 4 года назад
Thank you very much ! How i can share posts on instagram, it is not possible using this api?
@justinstolpe
@justinstolpe 4 года назад
Unfortunatly the Graph API does not allow for actual posting of content
@rayvvenn
@rayvvenn 4 года назад
what redirect urls can i use? yours isnt working
@justinstolpe
@justinstolpe 4 года назад
You can use localhost for testing, otherwise you will need to specify your actual domain with tthe path to your actual script where IG will redirect the user after they authenticate
@buddhikanelum161
@buddhikanelum161 3 года назад
Hi Justin, Thank you very much for the tutorial. But I have a question. I'm trying to get the data like followers count, media, etc without implementing a Facebook login. Basically, what I want to do is, Once I get the username from the basic display API, I'll use that username and send a request to the graph API to get followers count and media data. I don't want users to login with Facebook. I want to handle graph API access tokens from the server-side. Is there any possible way to do this?
@justinstolpe
@justinstolpe 3 года назад
The graph api requires a authentication dialog from the user so they can authorize your app to get their info.
@parmar3112
@parmar3112 4 года назад
Can i fetch other Instagram users followers count and media using this Instagram graph API
@parmar3112
@parmar3112 4 года назад
Is it necessary to have Instagram business account
@justinstolpe
@justinstolpe 4 года назад
@@parmar3112 You can switch your IG account from personal to business.
@shaistanazar4457
@shaistanazar4457 4 года назад
@hitesh suthar is it possible to get other users media and insight?
@afuaayiku8669
@afuaayiku8669 2 года назад
Hi Justin, was the type of app you created in the beginning a business app or a consumer app?
@justinstolpe
@justinstolpe 2 года назад
it is a consumer app
@afuaayiku8669
@afuaayiku8669 2 года назад
'Your app has standard access to public_profile. To use Facebook Login, switch public_profile to advanced access. Get Advanced Access; This reply shows up in the settings part of the Facebook Login. If I don't grant advanced access, does that affect anything?
@farshad1314
@farshad1314 3 года назад
Thanks a lot for this perfect video. I'm doing exactly same, but getting error "Call to a member function isLongLived() on null in..." after backing from linking and permitting app to facebook dialog.
@justinstolpe
@justinstolpe 3 года назад
Thanks I appreciate it :D Make sure you have $facebook initialized and try dumping out the facebook object along with the accesstoken object to see if you can spot any errors
@farshad1314
@farshad1314 3 года назад
@@justinstolpe thanks for help. Yes, the issue is depending on censoring facebook in my country. My host would not connecting to some facebook services :(
@danieladi513
@danieladi513 4 года назад
does facebook and instagram use the same app id and secret ?
@justinstolpe
@justinstolpe 4 года назад
Yeah for the graph API you use the facebook client id and client secret from your app
@franccallau1452
@franccallau1452 4 года назад
How can I extend a long-lived user access token with Instagram Graph API without user interaction? Is using a short-lived access token (with a user interaction) the only way? I'd like to extend a long-lived user access token without user interaction.
@justinstolpe
@justinstolpe 4 года назад
On every call you make to the api you could try and refresh the token and save the new one. The only way to get the short lived token for a user is with interaction.
@franccallau1452
@franccallau1452 4 года назад
@@justinstolpe Thank you, Justin. I don't quite understand what you said. I have the long-lived user access token stored in a database. I use version 6.0 of the Instagram Graph API. When I refresh the long-lived user access token, the data_access_expires_at field continues with the same timestamp, it does not change. Is it possible to refresh the user access token with the long-lived user access token? I don't have a short-lived user access token.
@justinstolpe
@justinstolpe 4 года назад
@@franccallau1452 The tokens get updated once a day on facebooks end. They do not get refreshed each time you hit the endpoint which is why you see the same expiration time. Wait at least a day and you will see a new expiration date when you hit the endpoint.
@abhishekbaguldesign
@abhishekbaguldesign 3 года назад
Can you provide a tutorial on Instagram content publishing API
@justinstolpe
@justinstolpe 3 года назад
Instagram API does not have a publishing content endpoint
@abhishekbaguldesign
@abhishekbaguldesign 3 года назад
@@justinstolpe as of 26 jan 2021 they do have one
@justinstolpe
@justinstolpe 3 года назад
@@abhishekbaguldesign thanks for the update! I will make a tutorial for it then, been waiting for them to make the endpoint as lots of ppl have been asking about it!
@justinstolpe
@justinstolpe 3 года назад
content publishing video is up ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1lKzu3UVJso.html
@abhishekbaguldesign
@abhishekbaguldesign 3 года назад
@@justinstolpe Thanks :)
@hodakhodabakhshi4164
@hodakhodabakhshi4164 2 года назад
Hi Justin. Thanks for your useful videos. When I get a token the expiresAt is Null in token object.Does it mean that long lived access token wont expire?if not, How can I refresh the long lived access token?
@justinstolpe
@justinstolpe 2 года назад
A user token will expire after 60 days if not refreshed. You can simply make a request to refresh the token. Check the api docs for refresh token details.
@hodakhodabakhshi4164
@hodakhodabakhshi4164 2 года назад
@@justinstolpe Thanks for your prompt reply. I checked the api docs but I couldn't find anything about refresh token. I'd be thankful if you could send me the link.
@justinstolpe
@justinstolpe 2 года назад
@@hodakhodabakhshi4164 developers.facebook.com/docs/facebook-login/access-tokens/refreshing/
@JohnCaspino
@JohnCaspino Год назад
@@justinstolpe If it expires at NULL, will it cause errors in the future?
@justinstolpe
@justinstolpe Год назад
@@JohnCaspino if it expires you need the user to reauthorize your app and get a new access token.
@bharatrajsingh2182
@bharatrajsingh2182 4 года назад
And how can i get user_id?
@justinstolpe
@justinstolpe 4 года назад
In the next video I get the Instagram account id ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-763kVf9fvqA.html
@sumeetkasar6012
@sumeetkasar6012 4 года назад
Hello Justin, I am working on one social app where i have to track IG posts and stories of user. I am able to get IG posts via IG Graph API but i didn't get any API for IG Stories. Flow: We have implemented Instagram Login at mobile app side and on successful login they are sharing IG access token to Backend(Node Js) where i am saving access token and when needed i am calling Graph API at my side to get Post. I want stories as well is there any way.
@berkayyurur
@berkayyurur 4 года назад
Hello Sumeet , do I need a domain owner to gain access? Because I don't have a "valid oauth redirect uris" address of my own. I would be very happy if you answer.
@justinstolpe
@justinstolpe 4 года назад
I do not think the API allows access to stories
@justinstolpe
@justinstolpe 4 года назад
@@berkayyurur If your app is live mode then you need a domain. You can use localhost with the app in development mode.
@berkayyurur
@berkayyurur 4 года назад
@@justinstolpe I just want an app to check my own Instagram account. For example, who deleted me etc. When I have problems, can I send you an e-mail? Because there is not enough Turkish resources. Thank you, so much.
@justinstolpe
@justinstolpe 4 года назад
@@berkayyurur If you want it to run on anything else besides localhost you will need a domain.
@beo1222
@beo1222 4 года назад
I'm trying to generate a map of my instagram post's geolocation. Is this possible with the new APIs?
@beo1222
@beo1222 4 года назад
And also thank you! there are not many guides on Graph API!
@justinstolpe
@justinstolpe 4 года назад
@@beo1222 Thanks! I do not think you can get geolocation with the Graph API
@beo1222
@beo1222 4 года назад
@@justinstolpe is there any way to?
@justinstolpe
@justinstolpe 4 года назад
@@beo1222 I don't think so
@mjavan9048
@mjavan9048 4 года назад
Thank you very much, but I couldn't get client id in manage clients on my instagram because there is a button named "Registration Disabled". What should I do Justin? It's so important for me.
@justinstolpe
@justinstolpe 4 года назад
I am not sure where you are seeing this buttong named "Registration Disabled"
@richardmartinenriquez7470
@richardmartinenriquez7470 4 года назад
@@justinstolpe its in manage clients
@justinstolpe
@justinstolpe 4 года назад
@@richardmartinenriquez7470 I think you are using a different api.
@SuperMa06
@SuperMa06 3 года назад
Thank you for the great tutorial. You said we can publish content using the API, but how? I searched RU-vid and all I found is how to get content not how to publish content?
@justinstolpe
@justinstolpe 3 года назад
You can't publish content with the API
@SuperMa06
@SuperMa06 3 года назад
@@justinstolpe Thank you for your reply. Is there any other ways to publish content? Any third party solutions?
@justinstolpe
@justinstolpe 3 года назад
​@@SuperMa06 Possibly, but I don't know any
@nencypatel2354
@nencypatel2354 3 года назад
You find any solution?
@SuperMa06
@SuperMa06 3 года назад
@@nencypatel2354 publishing with the API is now possible, see ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1lKzu3UVJso.html
@hakimsouhily8908
@hakimsouhily8908 4 года назад
Thank you , please we can get permission for post in fb groups
@justinstolpe
@justinstolpe 4 года назад
I will see what I can do! I am currently working on Instagram Graph API
@hakimsouhily8908
@hakimsouhily8908 4 года назад
Justin Stolpe thank you we can get full access token
@jacintofleta
@jacintofleta 4 года назад
Is it posible to get ALL the comments from a post with the Graph API ? Thank you
@justinstolpe
@justinstolpe 4 года назад
Yeah, comments for a post come back in pages of 25 or 50 with a next/prev link to get the next/prev page of comments if there are many.
@jacintofleta
@jacintofleta 4 года назад
Justin Stolpe thank you so much!! And may I ask one more question? I have a rate limit of 200query/user/hour. So posts with 100k comments (25/query) are 4000 queries. Is the “next” query counting for the rate limit? Sorry for my english
@justinstolpe
@justinstolpe 4 года назад
@@jacintofleta I see, yeah I think it does count. If you go to your facebook app dashboard and click on the api rate limit usage meter, it will tell you the calls that you have made that count towards that rate limit.
@jacintofleta
@jacintofleta 4 года назад
Justin Stolpe thank you sooo much 🙏🏼
@mateusnascimento1495
@mateusnascimento1495 4 года назад
@Jacinto Fleta and @Justin Stolpe... The post that i want to get ALL the comments, can be from another user? Or only works for my posts?
@svefre85
@svefre85 4 года назад
Exactly what I needed. Thanks, Justin!
@justinstolpe
@justinstolpe 4 года назад
Glad to help!
@EnamulHoque1983
@EnamulHoque1983 4 года назад
I have used your code and when I click on the "Login with facebook" login button gating error bow like "Sorry, something went wrong." how to resole it? please helf me
@justinstolpe
@justinstolpe 4 года назад
Hmm not sure with that vague error, maybe double check your app is setup correctly and you are using the right creds.
Далее
Switch Instagram Account to Professional Business
4:23
Instagram Graph API Access Tokens with Python
15:31
Просмотров 38 тыс.
БЕЛКА ЗВОНИТ ДРУГУ#cat
00:20
Просмотров 646 тыс.
Почему?
00:22
Просмотров 303 тыс.
Instagram User Profile using Instagram Graph API
8:23
No Code App Development is a Trap
9:31
Просмотров 258 тыс.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Instagram Graph API Get Users Stories
10:53
Просмотров 18 тыс.
БЕЛКА ЗВОНИТ ДРУГУ#cat
00:20
Просмотров 646 тыс.