Access Tokens | Instagram Graph API PHP SDK

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 37

  • @Mansur256
    @Mansur256 6 месяцев назад +1

    Men, you are genius! Thanks for your hardwork!
    Bless you Jesus Christ!

  • @zachgunderson9804
    @zachgunderson9804 Год назад +3

    Absolutely awesome intro!

  • @MarianoGlas
    @MarianoGlas 2 года назад +1

    Nice. Thanks a lot!

  • @psychurch
    @psychurch Год назад +1

    This is super valuable, thank you!
    Do you know if advanced app access is necessary for this process? I surmise it isnt since we are posting to our own instagram account? It also seems like they've disabled our ability to create test users, is there a way to proceed without creating a test user?

    • @psychurch
      @psychurch Год назад +1

      So the answer is a) we dont need advanced app access to post to our own insta account and b) creating a test user through developers page is currently disabled but it can still be done by creating an account and then adding that account as a tester Role. You'll have to confirm this in developer suite while logged in as the test user to accept test invitation.

  • @MrHarminto
    @MrHarminto 2 года назад +1

    Hi Justin, could you please show me how you set up the Facebook app with localhost development? I always get this error (getAccessTokenFromCode)
    OAuthException (191) -> you should register your domain on your app domain

  • @fredericomattos
    @fredericomattos 2 года назад

    Hi Justin, I have a question. My profile is business, but I don't have a website that contains such privacy policies and to request permissions like instagram_content_publish and the like that are necessary, it doesn't let me make the request for authorization to use the application. The only way to use it is by creating a website with a privacy policy?

    • @justinstolpe
      @justinstolpe  2 года назад +1

      Yeah Facebook does require that the apps have a privacy policy.

    • @fredericomattos
      @fredericomattos 2 года назад

      @@justinstolpe The most interesting thing is that many people only have the Instagram profile as their company, without websites, like mine for example, which I do a daily publication and I wanted to automate it, but I will archive this project for now, thank you!

    • @justinstolpe
      @justinstolpe  2 года назад +1

      @@fredericomattos yeah it can be annoying. There are workaround if you can't host it like free privacy policy generators, place on google docs, and more. I have seen many blog posts on how to deal with it so I would not let the privacy policy link hold you up :)

    • @fredericomattos
      @fredericomattos 2 года назад

      @@justinstolpe I just did this, I added it via Google Docs, but now it's asking me to provide access to the app for the employee to review and approve the use of the products that are needed to make the post. Now it's really impossible, because I don't have an application, just a simple code to publish the images. I'll need to look patiently at how to get around this! Haha

  • @punga-kronbergs
    @punga-kronbergs 11 месяцев назад

    Hi Justin,
    would love to use your SDK too (great work) but I stumble into a 'Unsupported post request. Object with ID xxx does not exist, cannot be loaded due to missing permissions, or does not support this operation' error when trying to do a media post. I've created an App with App-Type 'Business' (no oAuth-configuration) and I use the user_id and fresh generated Access token with all permissions from Graph Api Explorer - shouldn't that work too?
    Best,
    Ralph

    • @justinstolpe
      @justinstolpe  11 месяцев назад

      Yeah that should work, sounds like you are trying to query with and ID though that does not exist. Double check ids and permissions are correct.

    • @punga-kronbergs
      @punga-kronbergs 11 месяцев назад +1

      Hey @@justinstolpe, thanks for your reply. It turned out that it was due to using the FB userid and not the IG userid :)

  • @JohnCaspino
    @JohnCaspino Год назад

    It isn't displaying the URL when I put the code in. I noticed you are on a line in the hundreds, is there more code I needed to include?

    • @justinstolpe
      @justinstolpe  Год назад

      You just have to make sure you are including the autoloader so the sdk gets loaded along with setting app token and ids farther up in the code.

  • @fredericomattos
    @fredericomattos 2 года назад

    Hello again, I would like to send you a video lesson request that I believe would be interesting in your portfolio here in your channel about the Instagram Graph API, what better place to send you the idea?

  • @marlonpaulodasilva
    @marlonpaulodasilva 2 года назад

    Hello, Excellent content,
    I have a question,
    I tested and it worked publishing in my account that is linked to my developer APP.
    However when I try to access another account even with the Access Token, it is returning: NULL, when I try to get the user's pages.
    My question is: How can I on the pages of users who do not have a Developer account. Only with the Access Token.
    Just like Canva does with their users.
    Please, can you help me?

    • @justinstolpe
      @justinstolpe  2 года назад

      You need to have your app in live mode and those users need to authorize with your app so you can get an access token for the user.

    • @marlonpaulodasilva
      @marlonpaulodasilva 2 года назад +1

      @@justinstolpe thank you, i achievied greeting from Brazil

  • @timoberger7417
    @timoberger7417 Год назад

    Hey Justin,
    thanks for this amazing SDK!
    How can i extend the token expiration date?
    Or do i have to repeat the authentication process every 60 Days?
    Greetings!

    • @justinstolpe
      @justinstolpe  Год назад

      Thanks! if the token is active it should not expire unless it is inactive for 60 days which at that time you would need to re authenticate

  • @mikenordik
    @mikenordik 2 года назад

    You used a Facebook Test User in your video instead of using an administrator account.
    How can I get insights or medias using that user? This kind of account can't be linked to Instagram and you need to have a business or content creator account to do so, right?
    I'm still stucked on the "Sorry, something went wrong." error.
    Thank you s much! Your videos are great!

    • @justinstolpe
      @justinstolpe  2 года назад

      Thanks! The user does need to be a business account and admin on a facebook page in order to use the Instagram Graph API.

    • @mikenordik
      @mikenordik 2 года назад

      ​@@justinstolpe I solved the issue. We need to create a business type app in order to get some permissions. Unfortunately, we cannot change the app type. So, we need to create a new one with the correct type. If the app is not a business app the permissions (instagram_basic, etc.) don't even are listed in the Graph API explorer and we can't use any of your scripts.
      Your videos saved my project! Thank you!

    • @mh5854
      @mh5854 8 месяцев назад

      please justin when i click on login to facebook it says something went wrong error why?@@justinstolpe

  • @NewsBroadcasting
    @NewsBroadcasting 9 месяцев назад +1

    they madfe it so overly comlicated. but great video Justin

  • @michail2375
    @michail2375 5 месяцев назад

    I have a problem
    when I login this message appears
    'It appears that this app is not available'
    I have activated the application mode. and also I use facebook login for business. anyone know where the problem is?

    • @justinstolpe
      @justinstolpe  5 месяцев назад

      Sounds like something is not connected quite right. Maybe double check app id, token, permissions.

  • @itsjuoum
    @itsjuoum 9 месяцев назад

    How can I get an access token if the user doesn't have a FB account..?

    • @justinstolpe
      @justinstolpe  9 месяцев назад

      For the instagram graph api the user needs an account because they need to ues the Facebook login dialog.

  • @SchenierLopez
    @SchenierLopez 2 года назад

    Hi Justin, can you please make a video to get user follows/followers and search media of them?
    I think it's not possible with API... So, how can I do it?
    Thanks!!

    • @justinstolpe
      @justinstolpe  2 года назад

      The api only allows you to get follows/followers counts and not a list so unfortunately we can't do this.

  • @_vargasfelipe
    @_vargasfelipe 2 года назад

    How to get DevAccessToken???

    • @justinstolpe
      @justinstolpe  2 года назад

      if you mean a test user, you can create a test user in the facebook app, login as them and then authorize the app. That would give you an access token for a test user.

  • @alexk20z3
    @alexk20z3 2 года назад +2

    Comedy