Instagram Slideshow Content Not Returning Via API - instagram-api

Instagram recently introduced a new feature allowing users to post multiple photos via a slideshow.
http://www.telegraph.co.uk/technology/0/post-multiple-photos-instagram/
However, we are not seeing that content get returned when we GET /users/self/media/recent
Does anyone know how to get slideshow content from a user via the API?

Related

How to access Instagram Graph API and use Instagram webhooks?

I'm trying to create an app in which I would like to display user feeds from social media apps like Instagram. I want the data to be as live as possible so I tried to integrate Instagram Webhooks. I have created a server side application with Instagram's authentication and a callback url for webhooks through which I want to fetch data from Instagram and then store it in a database.
I have been going through the Official documentation. I was able to get User id, name, comments through Instagram API and I have also subscribed Instagram's webhooks in my meta developer's application. It didn't throw any error but when I like or comment on my post I couldn't get any object in the callback URL. I'm completely new to this so It would be great if someone could explain me how to do this?

get profile picture of logged in user on 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 :(

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

Instagram API with PHP

I have an application where I am using Facebook,Linkedin and Twitter Api's to post on the respective platforms.Now I am deciding to use Instagram to start posting using their Api but I have not found any good articles to implement their Api.
Moreover I have read somewhere that it is not possible to post media contents using Instagram Api's. Is it true or we can now use Instagram to share media contents ?
Currently, it's only possible to post comments via the Instagram Graph API. You cannot post media.
https://developers.facebook.com/docs/instagram-api/reference/media
IG Media
Represents and Instagram photo, video, story, or album.
Creating
This operation is not supported. To create an IG Comment, use the POST /{ig-media-id}/comments endpoint instead.
However there is a new publishing beta program you must be invited into:
https://developers.facebook.com/docs/instagram-api/reference/user/media
Creates a media container for a photo IG Media object. This endpoint is only available to partners in the Content Publishing API beta program.
https://developers.facebook.com/docs/instagram-api/guides/content-publishing

Using the Instagram API

I'm building a site which wants to display recent Instagram images in a carousel, grabbed from a specific geotagged location. I have everything ready to go, but I just can't figure out how to get the data.
I'm using node.js and I want to grab the image URLs server-side and give them to the client for them to make the requests to Instagram to fetch the images. If this hits rate limits or violates Instagram policy then I'll simply cache the images server-side instead. Either way, I have no idea how to get the data I need from Instagram.
The furthest I've got is manually getting an access token using this URL: https://www.instagram.com/oauth/authorize/?client_id=123456&redirect_uri=http://localhost&response_type=token&scope=public_content
Then using that access token I tried the following request in Postman:
https://api.instagram.com/v1/locations/226170293/media/recent?access_token=123456
But it returns the following:
{"pagination": {}, "data": [], "meta": {"code": 200}}
After Googling around a bit, I figured maybe it's because my Instagram app is in sandbox mode. So I went about applying for full access. The request form presents these options:
Which use case best describes your Instagram integration?
I want to install a third party widget to show Instagram content on my website.
I want to display hashtag content and public content on my website.
I want to display my Instagram posts on my website.
I want to build analytics for my own Instagram account.
My app is still in development and/or is a test app.
My app allows non-business users to login and post comments, likes or follow actions.
My app allows people to login with Instagram and share their own content.
My product helps brands and advertisers understand, manage their audience and media rights.
My product helps broadcasters and publishers discover content, get digital rights to media, and share media with proper attribution.
Other
My requirement falls under the second option, but after selecting it, I'm told:
This use case is not supported. We do not approve the public_content permission for one-off projects such as displaying hashtag based content on your website. As alternative solution, you can show your own Instagram content, or find a company that offers this type of service (content discover, moderation, and display).
And actually, selecting any option apart from the 3 options above "Other" presents a message stating it's not allowed. Even selecting "Other" shows:
We do not accept submissions for integrations that do not fall into one of the approved use cases.
Talk about terrible UX.
I'm seriously considering just scraping the URLs instead, but I'm betting that's definitely against Instagram policy, but what other choice do I have? All I want to do is display some images on a website...
Think I have it thanks to https://stackoverflow.com/a/40527149/1864403.
https://www.instagram.com/explore/locations/226170293/?__a=1
No idea how people can find this out other than word-of-mouth.

Resources