Code Monkey home page Code Monkey logo

Comments (45)

Andreyco avatar Andreyco commented on July 1, 2024 3

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.

creativefull avatar creativefull commented on July 1, 2024 3

image

try make your setting on product account kit like this :)

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024 1

This project's sample. You can follow this steps.

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024 1

@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.

gaguirre avatar gaguirre commented on July 1, 2024

Are you sure the error is thrown by getCurrentAccount method?
Could you try isolating the code?

Thanks!

from react-native-facebook-account-kit.

creativefull avatar creativefull commented on July 1, 2024

what it means isolating code?

sorry i'm newbie

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024

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.

creativefull avatar creativefull commented on July 1, 2024

sample code or sample app ?

from react-native-facebook-account-kit.

creativefull avatar creativefull commented on July 1, 2024

yes, i've been follow that steps, but still not working for me ,.

my phone using lollipop,

from react-native-facebook-account-kit.

creativefull avatar creativefull commented on July 1, 2024

successful for login phone,. but after login i did'nt got account :(

from react-native-facebook-account-kit.

arhmnsh avatar arhmnsh commented on July 1, 2024

+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.

gaguirre avatar gaguirre commented on July 1, 2024

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.

arhmnsh avatar arhmnsh commented on July 1, 2024

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.

creativefull avatar creativefull commented on July 1, 2024

+1
waiting for fix in android

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024

Ok, thank you guys, I'll debug it later.
It's probably related to the RN version.

from react-native-facebook-account-kit.

arhmnsh avatar arhmnsh commented on July 1, 2024

Hi @gaguirre
Is there any update on this?
Thanks! :)

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024

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.

creativefull avatar creativefull commented on July 1, 2024

ok i'll try again ,. thanks

from react-native-facebook-account-kit.

arhmnsh avatar arhmnsh commented on July 1, 2024

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.

strings.xml:
screen shot 2016-09-20 at 2 53 54 pm

AndroidManifest.xml:
screen shot 2016-09-20 at 2 54 17 pm

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.

arhmnsh avatar arhmnsh commented on July 1, 2024

Oops nope! It just worked for a couple of times. Facing the same issue again now 😕

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024

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.

arhmnsh avatar arhmnsh commented on July 1, 2024

@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.

gaguirre avatar gaguirre commented on July 1, 2024

@arhmnsh could you post the error stacktrace? or share a repo with the project?

from react-native-facebook-account-kit.

arhmnsh avatar arhmnsh commented on July 1, 2024

@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.

arhmnsh avatar arhmnsh commented on July 1, 2024

Hi @gaguirre, you had any chance of checking out the repo?

from react-native-facebook-account-kit.

gaguirre avatar gaguirre commented on July 1, 2024

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.

Andreyco avatar Andreyco commented on July 1, 2024

@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.

gaguirre avatar gaguirre commented on July 1, 2024

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.

gaguirre avatar gaguirre commented on July 1, 2024

Good idea @Andreyco. Feel free to send a PR for this too ;)
Thanks for contributing!!

from react-native-facebook-account-kit.

creativefull avatar creativefull commented on July 1, 2024

Thanks @Andreyco it is work fine 👍

from react-native-facebook-account-kit.

edo1493 avatar edo1493 commented on July 1, 2024

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.

edo1493 avatar edo1493 commented on July 1, 2024

@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.

creativefull avatar creativefull commented on July 1, 2024

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.

azharkiz avatar azharkiz commented on July 1, 2024

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.

rassemdev avatar rassemdev commented on July 1, 2024

@azharkiz i'm also stuck here too :(. if you found any solution, notify me plz

from react-native-facebook-account-kit.

amanix007 avatar amanix007 commented on July 1, 2024

errorapture
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.

azharkiz avatar azharkiz commented on July 1, 2024

from react-native-facebook-account-kit.

amanix007 avatar amanix007 commented on July 1, 2024

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.

rassemdev avatar rassemdev commented on July 1, 2024

@azharkiz can you share your code? i'm new in react-native

from react-native-facebook-account-kit.

azharkiz avatar azharkiz commented on July 1, 2024

from react-native-facebook-account-kit.

aderiushev avatar aderiushev commented on July 1, 2024

having the same issue, setting "Require App Secret" to "NO" didn't do the trick..

from react-native-facebook-account-kit.

creativefull avatar creativefull commented on July 1, 2024

anyone got a solution for this error ?

from react-native-facebook-account-kit.

lilian131 avatar lilian131 commented on July 1, 2024

@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.

sunnixx avatar sunnixx commented on July 1, 2024

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.

jpgarcia avatar jpgarcia commented on July 1, 2024

Closing this due to inactivity

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.