Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FacebookCallback#onCancel() is calling after login once in Facebook Sdk 4.2.0 in Android

I have successfully implemented login with facebook in android app. But now, Amazingly, When I do login one with facebook and if I try to login with facebook using facebook library 4.2.0 its onCancel() method is calling. Help!

like image 356
Rahul Rastogi Avatar asked Feb 09 '23 11:02

Rahul Rastogi


1 Answers

I solved this problem by calling: LoginManager.getInstance().logOut(); just before trying to login.

like image 130
Rahul Rastogi Avatar answered Feb 11 '23 23:02

Rahul Rastogi