Instagram API deprecation - flutter

I have an app that uses Instagram Login to use authenticate the users to the APP and the API which I using for this shown below
http://api.instagram.com/oauth/authorize/?client_id={client_id}&redirect_uri=http://localhost:8585&response_type=code
Is this API is going to deprecate should I move to Instagram basic display API for the same
Thanks in advance :)

Based on what is written here, you shouldn't use Instagram Basic Display API for authentication users to login to mobile app, but only to read and display data from Instagram. If your app uses API data to authenticate users, it will be rejected during App Review. You should use rather Facebook Login for authentication.

Related

Correct way to connect Instagram API

I am trying to connect Instagram to my app. The users will not be able to use the app without connecting to Instagram, therefore I technically need Instagram auth. But Facebook states the following:
Note that Basic Display is not an authentication tool. Data returned by the API cannot be used to authenticate your app users or log them into your app. If your app uses API data to authenticate users, it will be rejected during App Review. If you need an authentication solution, use Facebook Login instead.
So I had to implement a Facebook login. After Facebook login is complete, I am sending the user to Instagram auth window for a second authorization which feels weird for a user.
The other solution that I can think of is the following:
Use Instagram's user_id that is retrieved after Instagram auth and use it to create a custom auth method with Firebase. (I believe this would be rejected at app review)
What is the correct way to achieve this?
Sources:
Instagram auth: https://developers.facebook.com/docs/instagram-basic-display-api/reference/oauth-authorize
Firebase custom auth: https://firebase.google.com/docs/auth/web/custom-auth
NOTE: Facebook login has "instagram_basic" scope but that doesn't allow me to get instagram info or media of normal users (non-business accounts)

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.

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.

Do I have to create an app using the original Instagram API before i can use the instagram graph API?

I'm trying to create an app with the new Graph API for instagram business accounts.
I am following the documentation here
It says after adding Facebook login, I need to submit the app for review to be able to use the api, and I need to create a screencast on how the app will be used.
Am I looking at the wrong documentation? How am I suppose to create the app without being able to pull any data from the API?
Is there no sandbox mode until the app is developed that I can use?
Do I have to create an app using the Instagram API first to be able to request permissions to use it?
While I haven’t had any experience in Instagram apps, I do have a bit of Graph API experience with Facebook
While in development (a switch at the top of the App Dashboard), any developers and administrators can test the app using any and all permissions. To make the app public however you need to submit for review.
The new instagram graph API is an extension of the existing Facebook API.
So you can make requests on the new API by have a facebook login on your app, then requesting access for the users pages and the users instagram data.
Once you are able to access their pages data you can submit a get request and fetch ?fields=instagram_business_account
once you get the instagram accounts ID, you can make requests on it following this documentation
In development you can only access your own pages, once you build using your own data then you can submit your app for permissions, and finally you can submit your app for review.

Login Foursquare Api using facebook credentials

I am having this problem while building one iPhone app that connects using Foursquare. Its works fine with me to connect by using foursquare credentials but now my client want facility to login foursquare using Facebook credentials just like foursquare is doing in their native iOS app as well as on Website.
For Login i am using foursquare v2 api with oAuth login.
Can any one help me out to solve this issue?
According to Foursquare developers, "You can't use facebook credentials to access foursquare, you'll need the user to specifically authenticate your application to access their foursquare information".
Edited because I typed Facebook when I meant Foursquare