skip to Main Content

I have an app that our employs Facebook Login and has our users connect their Instagram accounts via Instagram Basic Display API.

So I have an Instagram basic display access token for each of our user’s and I have their ‘account ids’ but I cannot figure out how to get the user’s profile picture through this API?

3

Answers


  1. Have you integrated Instagram’s Graph API?
    Reference: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user

    Login or Signup to reply.
  2. If you could get the users username you could use this link as GET request: https://www.instagram.com/username/?__a=1

    Example would be:

    https://www.instagram.com/instagram/?__a=1 
    

    Then you get the user information for the user instagram

    You get source URL to the picture in "profile_pic_url": & "profile_pic_url_hd" in the message Body which is the link to the profile photo, hope it helps.

    Login or Signup to reply.
  3. AS you have a user access-token that means you can have a user Instagram id.

    GET graph.facebook.com/v10.0/{instagram-user-id}
    response : {.....,
                has_profile_picture: bool type 
                profile_pic : url sting type
                ....
               }
    

    The above API will help you and for more, you can follow the below link it has all the info required to get user details.
    https://developers.facebook.com/docs/graph-api/reference/instagram-user/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search