Instagram Graph API

136 views
Skip to first unread message

Stefan Cojocaru

unread,
Nov 27, 2019, 12:03:08 PM11/27/19
to RestFB
HI! 

I'm new to the whole Facebook/Instagram Graph API thing and I'm looking for a Java SDK which can help me get information from Instagram such as user insights (metrics) and photos. The app is currently using a Java server with Play, Hibernate and GraphQl, while the frontend is being built with React Native and GraphQL. Is this SDK useful for querying the previously mentioned data? If so, can you provide an example of querying the Instagram Graph API? If not, do you have any better recommendation?

Norbert Bartels

unread,
Nov 28, 2019, 5:14:58 AM11/28/19
to RestFB
Hi Stefan,

first of all. It depends. The Instagram API with access to insights and all the cool stuff is available for instagram business accounts, connected to the Facebook page. RestFB is supporting this and I'm about to add some examples in our documentation. I didn't had enough time to add the examples so far. Maybe I can manage it this weekend.

But in short:
You have to connect the facebook page with the instagram account in the Facebook Page settings on Facebook.

Fetching the page data with the page access token allows you to access the instagram_business_account field.

With this information you can start fetching media, comments, stories and insights for this instagram account.


Hope this helps a bit.

Best Regards
Norbert
Reply all
Reply to author
Forward
0 new messages