Comments (8)
[Update]
I think I was doing a few things wrong:
- I was not passing the
responseType
key inRNAccountKit.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 settingRequire App Secret
toNo
under the Account Kit dashboard.
Closing this... Thanks
from react-native-facebook-account-kit.
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.
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.
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.
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.
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.
Weird... blacklisting US
does make my defaultCountry
work correctly. Why do you think it works though?
from react-native-facebook-account-kit.
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)
- callback for cancel HOT 1
- [AKFNavigationController setUiManager:]: unrecognized selector sent to instance HOT 2
- App crash when navigating to account kit page HOT 1
- Build failed after upgrade to v1.2.0 HOT 20
- autolinking not working for android HOT 2
- header is not displaying HOT 1
- Skip input phone step HOT 1
- setEnableInitialSmsButton was removed in androidsdk 5.2.0 HOT 7
- RN 0.60.0 & new AK v2.0.0 lead to native crash on iOS (Phone Login) HOT 5
- error: Package androidx.core.content does not exist on v2.1.0 HOT 1
- Could not invoke RNAccoutKit.login HOT 5
- Unable to Run the project on iOS v2.1.0 TypeError: null is not an object (evaluating 'RNAccountKitNative.ANY_FUNCTION) on iOS HOT 3
- i am using library for project with react native version 0.60.4 .For me login by phone is success but when i using getCurrentAccount function then result of promise is {} ., no property? HOT 2
- Auto linking not working on android HOT 1
- [Question] Is it possible to show the viewConroller from right to left instead of from bottom to top (Like modal) HOT 1
- app’s country code selector displays placeholder content on ios HOT 1
- 'Login Cancelled' on Android appears under Catch error instead of !token.
- A System issue occured. Please Try again HOT 2
- Fb password HOT 1
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-facebook-account-kit.