Instagram Graph API Access Tokens

Поділитися
Вставка
  • Опубліковано 15 січ 2020
  • 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/jstolpe/blog_code/...
    --
    Live Demo ⇛ justinstolpe.com/blog_code/in...
    --
    Discord ⇝ / discord
    TikTok ⇝ / justinstolpe
    GitHub ⇝ github.com/jstolpe/
    Instagram ⇝ / justinstolpe
    Twitter ⇝ / justin_stolpe
    LinkedIn ⇝ / justin-stolpe-3bb05426
    Reddit ⇝ / jstolpe
    Twitch ⇝ / jstolpe
    Facebook ⇝ / stolpejustin
    Website ⇝ justinstolpe.com
    SoundCloud ⇝ / justin-stolpe
    --
    #programming #developer #coding

КОМЕНТАРІ • 232

  • @justinstolpe
    @justinstolpe  3 роки тому +7

    Publishing Content with the Instagram API is now possible! Here is how to do it -> ua-cam.com/video/1lKzu3UVJso/v-deo.html

    • @SuperMa06
      @SuperMa06 3 роки тому +3

      Hello, Justin. Glad to know that it's now possible. Thanks.

  • @flippingWebsites
    @flippingWebsites 3 роки тому +8

    Literally spent 2 days trying to figure this out. Thanks!

  • @andresalonso1066
    @andresalonso1066 4 роки тому +5

    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 2 роки тому +1

    Thanks for a very helpful video topics for coding😀

  • @electronsauce
    @electronsauce 3 роки тому +1

    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!

  • @kamaadhitia9745
    @kamaadhitia9745 4 роки тому +11

    waiting for post content with instagram api hehe

    • @justinstolpe
      @justinstolpe  2 роки тому

      Here is how to post content ua-cam.com/video/j65W-L-gQs4/v-deo.html

  • @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.

  • @user-ej7bb3ce2f
    @user-ej7bb3ce2f 8 місяців тому

    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?

  • @mosoleimaniyun9601
    @mosoleimaniyun9601 4 роки тому +1

    Thank you so much.

  • @murodparmonov5295
    @murodparmonov5295 4 роки тому +1

    Thanks mate. You helped.

  • @sgiraldo
    @sgiraldo 3 роки тому +2

    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.

  • @sophieliu9410
    @sophieliu9410 4 роки тому +1

    so great!!!

  • @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?

  • @satyamjha_2
    @satyamjha_2 Рік тому +5

    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 6 місяців тому +1

      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 6 місяців тому

      @@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.

  • @wantstudy8030
    @wantstudy8030 3 роки тому +1

    Thank you very much

  • @yesman4005
    @yesman4005 3 роки тому +1

    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

  • @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.

  • @indikaaruna7548
    @indikaaruna7548 3 роки тому +4

    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 роки тому +1

      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.

  • @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.

  • @svefre85
    @svefre85 4 роки тому +1

    Exactly what I needed. Thanks, Justin!

  • @timsweeney564
    @timsweeney564 4 роки тому +1

    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  3 роки тому

      Yeah right now there is no endpoint for actually posting content through the api

  • @jomclassifieds7446
    @jomclassifieds7446 Рік тому

    Thanks, Justin, how to get the access token expiry days?

  • @dperezc88
    @dperezc88 2 роки тому

    Thanks Justin!, Wath if I don't hace a valid OAuth tu put? does it mean I can't get permissions?

  • @MehmetBOZKURTEvil
    @MehmetBOZKURTEvil 3 роки тому +1

    thanks for everything

  • @enzocresus555
    @enzocresus555 3 роки тому

    hello! great an thanks again Justin! Is it possible to also get the expire date token's..?..
    $accessToken->getExpiresAt() ...not working....

  • @anascharfi4452
    @anascharfi4452 4 роки тому +1

    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 роки тому +1

      I am not python master :) but I can look into this

  • @mordye13
    @mordye13 2 роки тому +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 роки тому +1

      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 роки тому +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 роки тому +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 роки тому +3

      @@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

  • @afuaayiku8669
    @afuaayiku8669 2 роки тому +1

    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 ua-cam.com/video/8tu4DPSIQyA/v-deo.html

  • @Jann-Aron
    @Jann-Aron Рік тому

    Do you need a domain for this to work?

  • @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 роки тому +1

      The graph api requires a authentication dialog from the user so they can authorize your app to get their info.

  • @alejo0789
    @alejo0789 3 роки тому +1

    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

  • @sergey_zatsepin
    @sergey_zatsepin 3 роки тому +1

    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 2 роки тому

      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?

  • @Matthew-ld5zk
    @Matthew-ld5zk 2 роки тому +1

    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.

  • @mochamadrizkypradana680
    @mochamadrizkypradana680 3 роки тому +1

    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..

  • @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.

  • @syedfahadabdullah6032
    @syedfahadabdullah6032 3 роки тому +1

    sir where i can find my "valid oauth redirect uris"??

    • @justinstolpe
      @justinstolpe  3 роки тому +1

      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?

  • @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.

  • @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.

  • @wiemlimem8221
    @wiemlimem8221 3 роки тому

    Thank you very much ! How i can share posts on instagram, it is not possible using this api?

    • @justinstolpe
      @justinstolpe  3 роки тому

      Unfortunatly the Graph API does not allow for actual posting of content

  • @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?

  • @MrTheripper7
    @MrTheripper7 3 роки тому +1

    Why i get this error message: Undefined property: Facebook\Exceptions\FacebookSDKException::$getMessage in obtaining_access_token.php file

    • @MrTheripper7
      @MrTheripper7 3 роки тому

      the answer is 'Graph returned an error ' . $e->getMessage(); and 'Facebook SDK returned an error ' . $e->getMessage();

    • @MrTheripper7
      @MrTheripper7 3 роки тому

      now the error is Facebook SDK returned an error Cross-site request forgery validation failed. Required param "state" missing from persistent data.

    • @justinstolpe
      @justinstolpe  3 роки тому

      @@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.

  • @rushikeshkothapalli2183
    @rushikeshkothapalli2183 2 роки тому +1

    Hey, Thank you so much. Can you please let me know how add multiple images using excel

    • @justinstolpe
      @justinstolpe  2 роки тому

      Hey! Thanks for watching, not sure about excel but you can check out my video on posting content which might help you out.

  • @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 роки тому +1

      solved it by connecting a instagram account who exists for a while and not a fresh created account

  • @marquizzo
    @marquizzo 2 роки тому +1

    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  2 роки тому +1

      Yeah they don't make it easy and it sure is annoying!

  • @jindev4901
    @jindev4901 4 роки тому +1

    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

  • @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?

  • @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 ua-cam.com/video/lDRdewhH_vg/v-deo.html

  • @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 :(

  • @user-rx9zq1gu4r
    @user-rx9zq1gu4r Рік тому

    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.

    • @user-rx9zq1gu4r
      @user-rx9zq1gu4r Рік тому

      @@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?

  • @akshaydhar5970
    @akshaydhar5970 Рік тому

    hey i m new to this what text editor you r usinhg?

  • @mohammadrezasamavat7118
    @mohammadrezasamavat7118 2 роки тому +1

    Does this SDK work with the new API version?

  • @SaketAnandPage
    @SaketAnandPage 8 місяців тому

    Currently Instagram Graph Api and Basic Api cant be in 1 product then how do we use access token for graph api?

    • @justinstolpe
      @justinstolpe  8 місяців тому

      check out my new playlist on instagram graph api

  • @rayvvenn
    @rayvvenn 3 роки тому

    what redirect urls can i use? yours isnt working

    • @justinstolpe
      @justinstolpe  3 роки тому

      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

  • @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.

  • @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

  • @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

  • @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 роки тому +1

      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.

  • @dineshprajapati902
    @dineshprajapati902 4 роки тому +1

    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.

  • @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

  • @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

  • @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 роки тому +2

      @@ibrahimsenn7 The manage_pages was replaced with six other permissions in late May developers.facebook.com/docs/permissions/reference/manage_pages/

  • @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.

  • @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?

  • @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 роки тому +1

      ​@@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.

  • @SuperMa06
    @SuperMa06 3 роки тому

    Thank you for the great tutorial. You said we can publish content using the API, but how? I searched UA-cam and all I found is how to get content not how to publish content?

    • @justinstolpe
      @justinstolpe  3 роки тому +1

      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 роки тому +1

      You find any solution?

    • @SuperMa06
      @SuperMa06 3 роки тому +1

      @@nencypatel2354 publishing with the API is now possible, see ua-cam.com/video/1lKzu3UVJso/v-deo.html

  • @oktadoputra872
    @oktadoputra872 3 роки тому

    can i extend my instagram graph api accessstoken with long live token for 60 days?

    • @justinstolpe
      @justinstolpe  3 роки тому +1

      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?

  • @Ilohimushka
    @Ilohimushka 4 місяці тому +1

    everything zuckerberg touches gets to complicated lizard hell for developers

  • @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 роки тому +1

      @@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?

  • @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.

  • @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/

  • @bharatrajsingh2182
    @bharatrajsingh2182 4 роки тому

    And how can i get user_id?

    • @justinstolpe
      @justinstolpe  4 роки тому

      In the next video I get the Instagram account id ua-cam.com/video/763kVf9fvqA/v-deo.html

  • @EnamulHoque1983
    @EnamulHoque1983 3 роки тому

    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  3 роки тому

      Hmm not sure with that vague error, maybe double check your app is setup correctly and you are using the right creds.

  • @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

  • @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?

  • @novartisnk9684
    @novartisnk9684 10 місяців тому

    is there any sdk available for Python?

    • @justinstolpe
      @justinstolpe  10 місяців тому +1

      Not that I know of

    • @novartisnk9684
      @novartisnk9684 10 місяців тому

      @@justinstolpe thanks for replying 🙏
      Are Facebook sdk and meta business sdk different?

    • @justinstolpe
      @justinstolpe  10 місяців тому +1

      @novartisnk9684 yeah for getting access tokens for a user you need to authenticate through fb login

  • @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 роки тому +1

      The manage_pages has been deprecated here is the docs on the new permissions developers.facebook.com/docs/pages/overview/permissions-features

  • @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 роки тому +1

      @@justinstolpe as of 26 jan 2021 they do have one

    • @justinstolpe
      @justinstolpe  3 роки тому +1

      @@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 роки тому +1

      content publishing video is up ua-cam.com/video/1lKzu3UVJso/v-deo.html

    • @abhishekbaguldesign
      @abhishekbaguldesign 3 роки тому +1

      @@justinstolpe Thanks :)

  • @Spollo22
    @Spollo22 4 роки тому +6

    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 роки тому +1

      @@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 роки тому +1

      @@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

  • @ottersdangerden
    @ottersdangerden 3 роки тому +1

    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...

  • @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