DS9
DS9

Reputation: 3033

Get public content from Instagram on behalf of User

Now that Instagram have changed there policy and they have disabled the below capabilities:

So now is there a way to search user and get there public content?

I have seached on https://www.instagram.com/developer/endpoints/ but not able to found the replacement.

Upvotes: 3

Views: 2019

Answers (1)

Philip I
Philip I

Reputation: 294

After the recent change, it is only allowed to get information on Instagram Business Accounts and one must use Facebook's graph API for that.

One should also have an Instagram Business Account to do so. Check out this guide from Facebook:

https://developers.facebook.com/docs/instagram-api/getting-started

As to Facebook Graph API calls, below are a few examples:

Get ID of Facebook pages (You will need that to get own Instagram Business Account ID)

/me/accounts

Get your own Instagram Business Account ID

FACEBOOK_Page_ID?fields=instagram_business_account

Get basic account information for any Instagram business account by username (I have used "stonebrewing" as an example)

Your_Instagram_Business_Account_ID?fields=business_discovery.username(stonebrewing){
    biography,website,username,followers_count,media_count
    }

Get a list of posts and some data for any Instagram Business Account

Your_Instagram_Business_Account_ID?fields=business_discovery.username(stonebrewing)
{media{id,comments_count,like_count,media_type, media_url, caption, owner}}

Upvotes: 3

Related Questions