Instagram Insight API for page not linked to FB page - facebook

Is it possible to get Instagram insights via API (or sdk) for a page that is not linked to a facebook page?
From what I have read on the link Instagram Insight API it says
However, unlike Facebook users, Instagram users cannot grant your app access tokens directly. Instead, they must connect their Instagram Professional account to a Facebook Page. Once connected, any Facebook User who is able to perform Tasks on behalf of that Page will be able to grant your app a User access token, which you can then include in API requests..
Is there no way to get insights via API for pages that are not linked to facebook page? Cant the Instagram account grant an access key or something along the line ?

Related

Get instagram posts and insights via API

I like to get posts and insights from Instagram users, ideally with only one login.
From what I’ve seen, I have to use two different APIs:
Instagram API, api.instagram.com for login and graph.instagram.com to get the accounts posts
Facebook API, graph.facebook.com to get the insights
As it seems I can’t use Instagrams token for Facebooks API and I also don’t get direct access to Instagram accounts via Facebooks API. Also there might be Instagram accounts without connected Facebook account.
So I’m wondering:
Is there an option to access Instagram insights just via Instagrams API?
What would be the best solution to get Instagram user ids with Facebook token (get user token ➝ get Page token ➝ get connected instagram accounts)?

How can I use Facebook Messenger Platform's webhook to subscribe to the Page messages of other users?

I am creating an application using which users will manage their Facebook messenger and post comments on a page. I have implemented the Facebook Login which asks the user for page_messaging permission. I have also configured the webhook and it is working fine.
Now, Facebook documentation states the following
Generate a Page access token to start using the platform APIs. You
will be able to generate an access token for a Page if:
You are one of the Page admins, and
The app has been granted the Page's permission to manage and access Page conversations in Messenger.
So, how can I make my webhook listen to the messages of the page that have granted me permission to manage and access the page? I have looked for hours trying to find this in the documentation. No Luck!

User Instagram Graph API without Facebook Login

I'm trying to use the Instagram Graph API from Facebook. I need the media, stories and some profile information like follower. The problem is, that many users have no Facebook page which is connected to a instagram account.
Is it possible to use the Instagram Graph API without Facebook Login? The best solutions would be a login via Instagram or login via Facebook but without required page. Have anyone a suggestion?
I read through the documents and did a bunch of testing.
Here's what I think is necessary for using instagram Graph API as of 21-01-2021:
A facebook login to get fb access token
A page that connect to a business/creator account
We can get the connected instagram business/creator account's data by the token.
If users do not have facebook page is your concern, consider to use the instagram basic api instead.
I think it is possible to get ig data without facebook technically. Hope facebook get provide a clearer instruction and docs for developers in the future.

Get Instagram emails through Facebook graph API

I have an application, that obtains user's Facebook access token with instagram_basic permission and gets information about the user's Facebook and Instagram pages.
I am able to get Instagram account ids, using graph explorer
https://developers.facebook.com/tools/explorer?method=GET&path=me%2Faccounts%3Ffields%3Dinstagram_business_account&version=v3.2
By the following request
me/accounts?fields=id,access_token,name,link,instagram_business_account
Using restfb library I am able to get all information about the user. The full list of fields: `
https://restfb.com/javadoc-2/com/restfb/types/instagram/IgUser.html`
Also, I am able to set email for my Instagram account through Instagram and though Facebook page (provided, the Instagram account is bound to the Facebook page).
However, cannot find any of these emails in the responses if Facebook Graph API, neither documented, nor non-documented. Could you please point me the way how to get those emails?

New connect Instagram feature using Instagram graph API

My requirement is to add the feature of Instagram connect and fetch their post/medias.
So I am referring this link Instagram APIs for Instagram connect feature in my android app to fetch user posts of Instagram. as written in document Instagram developer APIs are going to deprecated in early 2020. so I read this new link Instagram Graph API of Instagram graph APIs.
So the problem is I am uncleared with the flow of connect Instagram feature using graph APIs.
So below are my queries:
If I need to connect Instagram and want to fetch their post/media
Do we need to authenticate with Instagram or Facebook?
What will be the flow of it for the user experience?
And all the user that want to connect with Instagram. they have to create Facebook page and link Instagram account to Facebook page?
Or we only need to configure developer account with these steps Instagram Graph API
Thanks
Happy Coding....
The "old" Instagram API is going to be deprecated soon. You should use Facebook Graph API instead. However you need to keep in mind that at the moment Facebook Graph API supports only Instagram Business Accounts. It is not possible to fetch Instagram posts for "regular" Instagram accounts. If you need to support both, you have to apply for both APIs - Instagram API and Facebook Graph API.
With old API you need to authenticate via Instagram login flow. With new Graph API you need to go via Facebook login.
User needs to connect his/her account to your app. Depends on API you are planning to use, but user will have to go either through Instagram (regular accounts) or Facebook (business accounts) and approve access for your app to their content.
Yes, if you plan to use Facebook and Graph API. The requirement for Instagram Business Account is to have Facebook page connected to Instagram account. It is not required for regular accounts and Instagram old API. However you can also access business accounts from old API too;)
It really depends on your use-case. If this is only internal app and you plan to support your personal Instagram account, you cna basically configure the developer account only. But if you plan to release the app to global account you need to go through verification process and app review on Facebook.