Coder Social home page Coder Social logo

Comments (7)

mikehardy avatar mikehardy commented on June 26, 2024 3

@thebergamo I made a "needs reproduction" label for things like this, also stops me from clicking on it but indicates there may still be something to learn here, just without a reproduction, what can we do?

from react-native-fbsdk-next.

boreales avatar boreales commented on June 26, 2024 1

I’ll try to dig it when I have some time and I’ll keep you updated 😉

from react-native-fbsdk-next.

mikehardy avatar mikehardy commented on June 26, 2024

Interesting. I didn't realize 14.4.2 was out until you mentioned it. I just updated my real iOS device to it and logged into my app via facebook to see if it would fail as you describe.

My login process runs this code:

  private static async getEmailForFacebookLogin(): Promise<object> {
    return new Promise((resolve, reject) => {
      const request = new GraphRequest(
        '/me?fields=email,name',
        null,
        (error: any, result: object | PromiseLike<object>) => {
          if (result) {
            console.log(
              'UserStore::getEmailForFacebookLogin - got result:',
              JSON.stringify(result, null, 2)
            );
            // @ts-ignore
            if (!result.email) {
              console.log('UserStore::getEmailForFacebookLogin - no email permission granted?');
              Analytics.analyticsEvent('getEmailForFacebookLoginFail');
              reject(new Error('email-permission-not-granted'));
            } else {
              return resolve(result);
            }
          } else {
            console.log('UserStore::getEmailForFacebookLogin no result?');
            reject(error);
          }
        }
      );

      new GraphRequestManager().addRequest(request).start();
    });
  }

and it successfully fetched the email via a graph request. So I'm not sure what's going on there.

That's using FBSDK ios 9.0.1 according to my Podfile.lock.

It appears 9.1.0 is out but I haven't tried it on a real device running 14.4.2 yet. I just kicked off a TestFlight build in my dev environment that will include 9.1.0 in order to see. I'll try to remember to post findings back here but if you do not see a post from you can assume it worked and I had some other higher priority thing going on (because, it worked...). If it broke you can be sure I'll be back here to triage :-)

from react-native-fbsdk-next.

boreales avatar boreales commented on June 26, 2024

Well I just found from where the problem comes. I have the Lockdown app installed on my iPhone which put the VPN iOS feature on. Then the Login to Facebook throw the connection error.

Not sure this is specifically related to react-native-fbsdk-next but so you know.

from react-native-fbsdk-next.

thebergamo avatar thebergamo commented on June 26, 2024

After you mentioned about VPN, it might be that your VPN is blocking Fb domain? Do you use any other app in your device that connects with FB? Or can you try to access the FB in general?

From the error it seems to be related to some network issue. I'm installing the newest version and will try to log into my app within my VPN to check also

EDIT
Even with VPN and newest iOS I could login normally with aforementioned versions

from react-native-fbsdk-next.

thebergamo avatar thebergamo commented on June 26, 2024

love it! thanks @mikehardy

from react-native-fbsdk-next.

mikehardy avatar mikehardy commented on June 26, 2024

Still missing reproduction, no activity. Can always reopen, but closing to clean issue list.

from react-native-fbsdk-next.

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.