Code Monkey home page Code Monkey logo

Comments (8)

tolu360 avatar tolu360 commented on August 19, 2024 2

[Update]

I think I was doing a few things wrong:

  • I was not passing the responseType key in RNAccountKit.configure({}) which you use in instantiating _accountKit (source: RNAccountKit.m)
  • Noticed I was getting the error API calls from the server require an appsecret_proof argument in XCode console - I had to turn the app setting Require App Secret to No under the Account Kit dashboard.

Closing this... Thanks

from react-native-facebook-account-kit.

tolu360 avatar tolu360 commented on August 19, 2024 1

Funnily and odd enough, setting the defaultCountry works just fine on iOS. Great work on this package, by the way!

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on August 19, 2024

Thanks @tolu360 for sharing this. Maybe we can improve the docs or something.
It does not work if .configure() is not called, right?

from react-native-facebook-account-kit.

tolu360 avatar tolu360 commented on August 19, 2024

You welcome @gaguirre. I think it should work, much later I noticed some defaults are being set by the package and .configure() is actually being called in the constructor - so calling .configure() serves to only overwrite the default config options. My issue was just as a result of the setting on Facebook App dashboard which I missed earlier.

As an aside passing the key defaultCountry in .configure() on android did not seem to work for me (it was still set as +1) and when I looked under the hood, RNAccountKitModule.java looks good to me. Any ideas?

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on August 19, 2024

Good to hear that! Regarding the defaultCountry issue you mentioned, let me try the sample and see if it's working for me.

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on August 19, 2024

Ok, this is really weird... It's like US it's overriding the default.
If you blacklist US then you will see the default country correctly. Try the following and let me know if it works for you too.

AccountKit.configure({
  countryBlacklist: ["US"],
  defaultCountry: "AR",
})

from react-native-facebook-account-kit.

tolu360 avatar tolu360 commented on August 19, 2024

Weird... blacklisting US does make my defaultCountry work correctly. Why do you think it works though?

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on August 19, 2024

Probably an Android SDK's issue.
What about iOS? same issue? I'm reporting this bug on developers.facebook.com/bugs.
Follow this in #31

from react-native-facebook-account-kit.

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.