Well, why don't you use the simple Facebook or Twitter API to log in. When you integrate FB or Twitter, you made a login through your own applications, so if the user selects logme from facebook, you can try to log in and check if the login is successful or not, and if it is successful, the user does not need to again log in and you save the token.
Of course, you will use the basic configuration and API as follows:
ConfigurationBuilder cnf = new ConfigurationBuilder (); cnf.setDebugEnabled (true);
mTwitter = new TwitterFactory (cnf.build ()). getInstance () ;; mTwitter.setOAuthConsumer (Constant .CONSUMER_KEY, Constant.CONSUMER_SECRET);
Pablo reyes
source share