I made an android app which uses Cordova-Facebook plugin inorder to connect to Facebook and use the Facebook API's .. while trying it on the mobile i am able to login to Facebook and the api works but the second time i do so i get an error saying
cordova Facebook connect plugin fail on login ! Facebook error: failed to receive access token
( sandbox : disabled )
tried this : Cordova facebook connect plugin fail on login in android
but doesn't work
what am i doing wrong ?
On native android, you can get this error when you try to getAccessToken without getActiveSession when user already logged (a session was created and you try to retrive it again). You can just add the session.getActiveSession() on onResume and will work. You can see here.
But I really don't know if the problem is with the plugin you are using (I never used), or in your code. You need to share more than that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With