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
Have you integrated Instagram’s Graph API?
Reference: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user
If you could get the users
username
you could use this link asGET
request: https://www.instagram.com/username/?__a=1Example would be:
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 messageBody
which is the link to the profile photo, hope it helps.AS you have a user access-token that means you can have a user Instagram id.
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/