Instagram API with PHP - instagram

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

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?

getting insight media data (like comments and location) of public Instagram account (not business) from Instagram API

my requirement is to get instagram user media data (like_count,comments,location).it was going fine with instagram Api until it announced it to deprecating those APi and shifted to Facebook Instagram Graph APi and Instagram Basic Display API.i cant use Graph APi as it will require user to have business account but yes users have to make account public.with Instagram Basic display Api we cannot have media insights (like_count,comments,location).i can extract data of public user from _sharedData variable using https://www.instagram.com/USERNAME/ response. will that be alright? because if i have hundred thousand users,i will be making those requests to Instagram at a time. will Instagram restrict me of doing this action?is there another solution of getting using media data?

Programmatically post and tag media on Instagram

I searched into the Instagram API docs and I discovered that posting images and tagging products through API requests is not (yet?) possible.
Is it true?
Depends from type of account that you use:
Personal account. Not possible to post via API
Business account. Posible via API Graph for Instagram. https://developers.facebook.com/docs/instagram-api/overview

Get images with tag using FB's new Graph API for instagram

Recently, Instagram/Facebook stopped approving apps using their old Instagram API in favor of Facebook's graph api.
I'm struggling to figure out how to migrate of some of the functionality I'm wanting in my app.
With instagram, to get recent images with a given tag, you simply made a request to this URL:
https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN
Does the Facebook graph api for instagram have that? I couldn't find it in their documentation.
The new graph API does not support all the APIs that the old Instagram API supported. You cannot get images by hashtag and location and any user's posts, like you could with old APIs.
With new graph API you can only access your photos and your insights and comments.
No hashtag posts, other user posts, location posts or follower lists.

retrieving instagram stories data using instagram api

I want to access and retrieve a user's Stories post from Instagram using their Dev API.
I tested after posting a story myself by using https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN.
However, that returns an empty object unless I post a regular post.
As far as I am aware the Instagram API does not currently return Stories.
The example response in the documentation for the media endpoint, for example, shows responses for Images, Videos and Carousel items only. The recent media end point documentation doesn't go into much detail on responses.
Media End Point Documentation
It is available only for Instagram Business Account.
See this link for more information: https://developers.facebook.com/docs/instagram-api/reference/user/stories/
The id returned by this endpoint can be used on the same API media endpoint.

Resources