Giter Site home page Giter Site logo

Comments (23)

Ilario17 avatar Ilario17 commented on May 31, 2024 2

The problem seems gone without the need for changes :)

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024 1

@superandrew213 seems promising. I can't test it at the moment. I will let you know when I have an update!

from react-native-instagram-login.

hungdev avatar hungdev commented on May 31, 2024

check your redirect URIs in your code and https://instagram.com/developer/clients/manage/, tab Security. If it still errors, you can remove app and rerun again.

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@amanolar94 are you located in a European country?

@hungdev I think this issue happens for European users and is being caused the GDPR updates that Instagram had to make on their website.

Maybe they are trying to notify European users that they are using cookies on their website. They probably didn't test these changes on their login form.

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024

I also think it's because of that. I used VPN to connect outside Europe and everything was working fine

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@amanolar94 can you try to login in on your Instagram app?

Would love to know if this issue is with this login form only or with the Instagram app too. I'm pretty sure Instagram is using a WebView for their login form on their app too.

I'm in Australia and it's working fine for me.

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024

@superandrew213 Instagram connects normally. I think something is wrong with Instagram though since we have both Android and Instagram app and they both broke the same time

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

Thanks for testing. I think there could be a way we could fix this.

Can you try going to this link on your browser, try to login and let me know what happens. Do you get any accept cookies pop, etc?

https://www.instagram.com/accounts/login/?force_classic_login=&client_id=XXXXXX&next=/oauth/authorize/?client_id=XXXXXX&redirect_uri=XXXXXX&response_type=code

Please replace XXXXXX with your client_id and redirect_uri.

If it works, make sure to logout and, then try to go to this link (replace XXXXXX with your values again) and try to login again.

https://www.instagram.com/accounts/login/?client_id=XXXXXX&next=/oauth/authorize/?client_id=XXXXXX&redirect_uri=XXXXXX&response_type=code

By removing force_classic_login from the url params we can use the new Instagram form to login.

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024

@superandrew213 OK i tried both but I seem to get the following error: {"error_type": "OAuthException", "code": 400, "error_message": "You must include a valid client_id, response_type, and redirect_uri parameters"} I noticed though that the url on the browses is the following: https://www.instagram.com/oauth/authorize/?client_id=XXXXXXXXXXXXX which i guess means for some reason the parameters don't pass after the redirect from the login

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@amanolar94 you have to replace the XXXXX in the url with your values.

Are you still getting the login issue when you try to login with Instagram on your app? I think Instagram might have fixed it.

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024

@superandrew213 No they have not fixed it yet. I have replaced the XXXs with the values but for some reason after the login the parameters don not pass along with the client id.

from react-native-instagram-login.

Ilario17 avatar Ilario17 commented on May 31, 2024

@superandrew213 I've the same issue and your first link return me the same error message.

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024

@Ilario17 are you also located in Europe?

from react-native-instagram-login.

Ilario17 avatar Ilario17 commented on May 31, 2024

@amanolar94 Yes, wait Instagram is the only solution?

from react-native-instagram-login.

amanolar94 avatar amanolar94 commented on May 31, 2024

@Ilario17 It's not the only but we had it as a signup method and it does not seem to work

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

Ok. Let's try this link:

https://api.instagram.com/oauth/authorize/?client_id=XXXXX&redirect_uri=XXXXX&response_type=token

Please don't forget to replace XXXXX with your values. Once you go to this link you will be redirected to this url:

https://www.instagram.com/accounts/login/?force_classic_login=&client_id=...

Try to login and let me know what happens here. Do you get some sort of error, cookie pop up and also check console output.

I tested using a VPN to make requests from France, Germany and UK but didn't encounter any issues. Tested both through browser and iPhone simulator. But I can confirm that EU users are still having this issue.

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@amanolar94 and @Ilario17 did you guys have a chance to do the test above?

from react-native-instagram-login.

Ilario17 avatar Ilario17 commented on May 31, 2024

Hi,

when I login from Simulator with the first link, I encounter the same issue:

schermata 2018-06-04 alle 10 00 29

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@Ilario17 thanks! Can you please try it on the browser too.

from react-native-instagram-login.

Ilario17 avatar Ilario17 commented on May 31, 2024

@superandrew213 I tested it in Safari inside Simulator

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@Ilario17 please try one last thing. Go to the login link above but don’t login. After the login form loads, go to the URL and remove this part force_classic_login=& and then press enter and try to login.

from react-native-instagram-login.

Ilario17 avatar Ilario17 commented on May 31, 2024

Hi @superandrew213 there isn't force_classic_login . When I try with both links, the redirect happens on this link:

https://www.instagram.com/accounts/login/?next=/oauth/authorize/%3Fclient_id%3myclientID%26redirect_uri%3Dmycallback%26response_type%3Dtoken

simulator screen shot - iphone 6 - 2018-06-08 at 09 55 32

from react-native-instagram-login.

superandrew213 avatar superandrew213 commented on May 31, 2024

@Ilario17 interesting! That's not the form I get. They must be redirecting some users to this new form. I am getting the old form.

Please try adding force_classic_login=& to the url of the new form you are getting. Like this:

https://www.instagram.com/accounts/login/?force_classic_login=&client_id=...

from react-native-instagram-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.