I am implementing social login, however somehow I cannot seem to obtain the tokens and log in.
almost 9 years ago
The library provides a basic implementation for logging in via Facebook, Google+, LinkedIn, and Twitter that works on most modern platforms and browsers. However, it might be that the device or browser you are running your app on has limitations or bugs preventing the library from connecting with a social provider.
* An exception is thrown - this might happen if the platform does not support a particular method the library uses.
* Pop-up management doesn’t work - i.e. the redirect to the social provider never happens.
* Tokens are not returned correctly - i.e. you receive an error similar to "InvalidCredentials".
* You get back a "SocialError". Inspect the description and debug property to see the exact cause of the error.
The best way to get this resolved is to manually retrieve the required OAuth tokens yourself (instead of letting the library obtain them), and then logging in as follows (example for Facebook):