Comments (45)
As I recall, there is no newer SDK version. I suppose, we should wait then...
The only thing we should do is to update docs and mark "Require App Secret" should be set to "NO" in AccountKit admin panel.
from react-native-facebook-account-kit.
try make your setting on product account kit like this :)
from react-native-facebook-account-kit.
This project's sample. You can follow this steps.
from react-native-facebook-account-kit.
@arhmnsh with a deeper debug I can tell your error is related to a configuration on the FB admin page.
Try with the answer to this stackoverflow question and tell me if that works :)
I'll improve the error handling to show better error messages.
from react-native-facebook-account-kit.
Are you sure the error is thrown by getCurrentAccount
method?
Could you try isolating the code?
Thanks!
from react-native-facebook-account-kit.
what it means isolating code?
sorry i'm newbie
from react-native-facebook-account-kit.
I meant removing all code that isn't related to Account Kit specifically.
Have you tried running the sample?
from react-native-facebook-account-kit.
sample code or sample app ?
from react-native-facebook-account-kit.
yes, i've been follow that steps, but still not working for me ,.
my phone using lollipop,
from react-native-facebook-account-kit.
successful for login phone,. but after login i did'nt got account :(
from react-native-facebook-account-kit.
+1
Facing the exact same issue on Android. Works fine on iOS.
Sample app works fine. So, removed all my custom code, and copy-pasted code from the sample. Still getting this error on getCurrentAccount().
from react-native-facebook-account-kit.
Which version of React Native are you using guys? @creativefull @arhmnsh
Did you configure the project with your credentials?
from react-native-facebook-account-kit.
RN is 0.32. And yep, I configured it properly.
On Fri, Sep 9, 2016, 4:42 PM Gonzalo Aguirre [email protected]
wrote:
Which version of React Native are you using guys? @creativefull
https://github.com/creativefull @arhmnsh https://github.com/arhmnsh
Did you configure the project
https://github.com/underscopeio/react-native-facebook-account-kit#configuration
with your credentials?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#36 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABTPDGli-prnoea3NuHL4F__HV8R6pNpks5qoWJUgaJpZM4Ju3Uk
.
from react-native-facebook-account-kit.
+1
waiting for fix in android
from react-native-facebook-account-kit.
Ok, thank you guys, I'll debug it later.
It's probably related to the RN version.
from react-native-facebook-account-kit.
Hi @gaguirre
Is there any update on this?
Thanks! :)
from react-native-facebook-account-kit.
I just published a new release (0.5.0) compatible with React Native 0.33.
Would you try it and see if it fixes the error?
Notice that, from now on, there are two separated examples for RN 0.24 and RN 0.33.
from react-native-facebook-account-kit.
ok i'll try again ,. thanks
from react-native-facebook-account-kit.
Hey @gaguirre and @creativefull,
Thanks for the update buddy.
That didn't work. But I think I found the issue. I went the though the sample app code, found some differences in strings.xml
and AppManifest.xml
.
So I took the changes from the sample, applied it in my project and it worked.
Hope it helps.
from react-native-facebook-account-kit.
Oops nope! It just worked for a couple of times. Facing the same issue again now 😕
from react-native-facebook-account-kit.
I can't reproduce the error.
Try with the example. If it works fine then the error must be something in your project.
from react-native-facebook-account-kit.
@gaguirre Example works perfectly. Just tried to create a new 0.33-based project, worked fine for a couple of runs, and then the same issue. :(
from react-native-facebook-account-kit.
@arhmnsh could you post the error stacktrace? or share a repo with the project?
from react-native-facebook-account-kit.
@gaguirre I created this project just with accountKit. Here it is: https://gitlab.com/arhmnsh/fbakTest/blob/master/README.md
from react-native-facebook-account-kit.
Hi @gaguirre, you had any chance of checking out the repo?
from react-native-facebook-account-kit.
I'm looking at it right now.
A new version of Android SDK was released these days so I'll upgrade it and let you know.
from react-native-facebook-account-kit.
@gaguirre while the advice on SO works, it deserves more than hotfix. Is there any plan, how to properly solve this issue?
TY
from react-native-facebook-account-kit.
I'm not sure 100% but I think sending the app_proof
is not supported by the SDK.
However, that could have changed or I could be wrong, so if anyone find another better solution would be great!
from react-native-facebook-account-kit.
Good idea @Andreyco. Feel free to send a PR for this too ;)
Thanks for contributing!!
from react-native-facebook-account-kit.
Thanks @Andreyco it is work fine 👍
from react-native-facebook-account-kit.
Hello, I am on the latest version and RN 0.48.4. I am logging in through phone number, which works fine. However, when I try to retrieve the account or access token, I get an empty object in the first case and undefined.
from react-native-facebook-account-kit.
@gaguirre I have also tried to call configure, before trying to get the account object, but it doesn't make any difference.
from react-native-facebook-account-kit.
hi @edo1493 u need to setting in developer.facebook.com to disable secret key. because if u use it maybe not working on android :)
from react-native-facebook-account-kit.
i am using Facebook Account Kit for OTP verification in react native. everything is working is working but i can't find a way to get the mobile number which is verified.. please help me guys?
RNAccountKit.getCurrentAccount().then(account => {
console.log(`Current account: ${account}`)
})
from react-native-facebook-account-kit.
@azharkiz i'm also stuck here too :(. if you found any solution, notify me plz
from react-native-facebook-account-kit.
Even my "Require App Secret" set to "No" and "Enable Client Access Token Flow" set to "Yes" Still Having same issue.
from react-native-facebook-account-kit.
from react-native-facebook-account-kit.
hi @azharkiz Thanks for reply , if you have time kindly see this repository, i uploaded my project here.
https://github.com/amanix007/demorepo
Accountkit used file
https://github.com/amanix007/demorepo/blob/master/src/components/signIn/index.js
It will be really helpful for me, my job depends on it. :(
Thanks in Advance.
from react-native-facebook-account-kit.
@azharkiz can you share your code? i'm new in react-native
from react-native-facebook-account-kit.
from react-native-facebook-account-kit.
having the same issue, setting "Require App Secret" to "NO" didn't do the trick..
from react-native-facebook-account-kit.
anyone got a solution for this error ?
from react-native-facebook-account-kit.
@creativefull hi I had the same problem with a cordova plugin in ionic
for me it was because despite removing the token with a normal way when logout
localStorage.removeItem('token');
I had to use the method provided to destroy the token like
AccountKitPlugin.logout();
and it works!!
Hope this will help other because this was something really frustrating as it made my server always crashed
from react-native-facebook-account-kit.
Hi
Any update on this ? I am trying to implement RNAK using example for RN057 but I am not able to get the account details after SMS
from react-native-facebook-account-kit.
Closing this due to inactivity
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.