Am using google plus and facebook javascript sign in feature for my website. I am able to get the user details and the access token in javascript. I want to validate the user in server side(java) also. Is it possible to do the same with the help of access token which i can send as an ajax request?
facebook and google plus user verification in server side with the access token send from javascript
Asked
Active
Viewed 441 times
0

user3151113
- 41
- 1
- 4
-
For Facebook: https://developers.facebook.com/docs/facebook-login/access-tokens#debug – CBroe May 04 '14 at 15:36
1 Answers
1
With Google+, the preferred method is to use the client to get a one-time code and to provide this code to the server. The server then exchanges it for an access_token as part of verifying there is no malicious activity going on.
See https://developers.google.com/+/web/signin/server-side-flow for details.

Prisoner
- 49,922
- 7
- 53
- 105