Instagram public pages feed Graph API - facebook-graph-api

I need to get the public posts for public pages in Instagram using graph API. If I granted the instagram basics and Instagram public content access requests. It will be enough to enter page ID for the graph API to retrieve the media of the page? From the graph API documentation I can see that I can only use the instagram user ID. Is it the same in case of public pages?
Something like below to retrieve media list and number of followers?
GET /v3.3/{instagram-page-id}?fields=media,followed_by_count

Related

How to Get Instagram Graph API User Access Token From Server Side

I'm trying to develop a web application to display Instagram media along with the metrics like comments count, likes count, etc, of a user registered in my application. Users need to signup using their email and password and after successful signup, there is a button to verify their Instagram account. Since there are two APIs (Basic Display API and Graph API), I can use Basic display API authorization endpoints to authorize users with my app. I have got no issue with that. But in order to get the user data like follower count, metrics of media, etc, I need to access the Graph API. According to the docs I need to implement a Facebook login to get the access token for that. But I don't wanna implement a Facebook login. I just want to grab the access token only from the server-side. Currently, I'm using the Graph API Explorer to get the short-lived access token and exchange it with a long-lived access token. Is there any way to do this from the server-side only? Without using Facebook SDK or without implementing Facebook login? I've read the Facebook docs but it's not helpful.

How to get media from clients Instagram and Facebook public page on the server side?

I know it's probably a common question but i couldn't find a solution for my specific case. We have created a Facebook App on our Business Facebook account and the client has given us page moderator permission on his page. Using this we have been able to generate a Never expiring page token and download the posts from the clients page. We would like to do the same for the clients Instagram posts.
After reading the GraphAPI docs i have concluded that we need "instagram_basic" permissions from the client but when i choose page in the Graph API Explorer and try adding "instagram_basic" permission the whole API Explorer disappears.
We do not have the Instagram Business account but the client has. His posts are all public and we need only his posts. I'm confused by the docs what tokens can we use. Page token seemed appropriate for Facebook but not for Instagram. This is all downloaded server side and mashed together with the clients other blog posts and similar feeds. There is no App involved so no Facebook, IG login.

get information of public media using API graph instagram

The response of API to get media with tag of user does not return any informations about the user who has posted the media.
Is there a way to get information of those media'user. My app has already the feature instagram public contents
THanks a lot for your replies
You can no longer get user info got hashtag feed using Instagram graph API. You can only get likes count, comments count and caption, no user info.

Facebook graph api Public page data

I am stuck in fetching data for a public Facebook page. I want to know which endpoint of graph api should I use to fetch the page data and how. Will anybody please help. I have tried to make a get request for public page content access
you don't need a special endpoint, you just have to use the id of the page when making the call, in the same way you do with a user profile.
but in order to make a call to a public page, you need your app to be reviewed and approved by the Facebook team.

Why are Facebook Graph API permissions so weird?

I have created a Facebook page. On the page I have created some events and some notes. Everything as public as possible. Now I want to expose the data on my website using the Graph API.
The general data of the page is accessable without any access token, which is nice.
The event data is accessable using a FB app with app_id and app_secret.
For the notes you need a "user access token", which isn't an option, because not all of the website visitors have a FB account.
Why must it be so complicated? Does anyone have a solution?
Greetings
Allan