get profile picture of logged in user on Instagram - instagram

I am trying to use Instagram Basic Display API (V2) to get username and user profile picture of user who logs into application.
I have given necessary permissions to the application for eg. instagram_user_profile & instagram_user_media, I am successfully getting username of the user but i am not getting any API end point which will return me user's profile picture.
following is the link I am referring to for Instagram Basic Display API
https://developers.facebook.com/docs/instagram-basic-display-api
I have tried to query the media node using following GET api listed in the documentation https://graph.instagram.com/{userid}/media?access_token=IGQV....
But in response i am able to get only data of Instagram POST of logged in user.

I'm having the same issue. Instagram Basic Display doesn't provide basic info like user display name and profile picture.
Even the known workarounds, like https://www.instagram.com/USERNAME/?__a=1, are not fully working anymore (think they added some IP filtering, because it works from my machine but if I deploy to an AWS Lambda it doesn't).
The only official way to get the user info that I know is the Instagram Graph API, but it's only for Instagram Business :(

Related

Unable to get user image from Spotify API session

I am trying to build a clone to Spotify App using their API and I only seem to be getting name , email and username from the API. Is there a way to get profile picture details?
Appreciate the responses.
You can access profile picture via API, see:
https://developer.spotify.com/documentation/web-api/reference/#/operations/get-current-users-profile
As you can see there is an "images" JSON array containing the picture at different resolutions:

Does Instagram API support get followers list and more?

I am working on an app, which does the below:
A user logins using instagram User creates content and shares it with a subset of her instagram followers ( say 3 out of 200)
Those 3 users get a message in their insta inbox and can click on a link
and sign up on our app.
I am trying to find Insta API documentation, but I am unable to. Can someone experienced with Insta API's please guide to me to specific parts of the Instagram API documentation which can do What I am imagining?
Thanks
The thing that you are trying to create is not possible by using official Instagram APIs. None of the APIs returns the list of followers for given user. It is also not possible to send a Direct message via Instagram API.
https://developers.facebook.com/docs/instagram-api here is the introduction to Instagram Graph API. Right on the top of that page you will find possible use-case scenarios.
There is also more limited Basic Display API which documentation and possible use-cases you can find here: https://developers.facebook.com/docs/instagram-basic-display-api

Is there any way to get images from an instagram account since the new changes of the API (April 4th, 2018)?

Instagram API removed the following endpoint:
GET /users/search
which I was using to get images from my profile on my website.
Is there any way to do this now? I can't find any info since this is very new.
You can get at least the newest 12 pictures from a public account by using this URL scheme:
https://www.instagram.com/[name_of_account]/?__a=1
You can parse the Json output and find the image-URL in display_url
This also works with hashtags and locations:
https://www.instagram.com/explore/tags/hawaii/?__a=1
you can show your own media,
https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN
just enter access token an you will be able to get your media data
I do not see any way via either the old Instagram API or via the new Facebook graph API for Instagram Business Accounts to get profile images for accounts that are not yours. If it is an Instagram Business Account, you could get the Facebook profile image from the Facebook page associated with that Instagram account; but if it is a non-business Instagram account, that won't work. More documentation here: https://developers.facebook.com/docs/instagram-api/overview

Can I get likes by specific user using Instagram API?

Can I get likes by specific user using Instagram API? I saw this in Windows Phone app, but I can't find it in API docs.
Is it possible?
If I understand this correctly, you wish to get the most recently liked photos of a particular user.
This can be done using the Instagram API - but only when that particular user has authenticated your app.
You can use the following endpoint:
GET /users/self/media/liked
Here the API call would be :
https://api.instagram.com/v1/users/self/media/liked?access_token=ACCESS-TOKEN
This will give you the list of recent media liked by the owner of the ACCESS-TOKEN.
More details on the Instagram API here :
https://www.instagram.com/developer/endpoints/users/#get_users_feed_liked
Unfortunately no, you can't.
This feature is only available on the Instagram app following this steps
To view the 300 most-recent posts you've liked, go to your account
settings in the app and then tap Posts You've Liked. You won't be able
to view posts you've liked on the web.

Is there any way to get user news through the official Instagram API?

I want to build Instagram client for Ubuntu. I already figured out how to get data like user feed through access token through Instagram API. But I can't figure out how to get user news (e.g. someone liked your photo, mentioned you in comment etc.), I guess user need to be logged on to watch his news (via http://instagram.com/api/v1/news/inbox/).
So, the question: is there any way to get user feed through API, or through access token? I don't want to request user password in my application, all I got is access token.
This endpoint (v1/news/inbox/) is not supported by official Instagram API. By the way; you can't access the data.

Resources