Facebook Connect example in JSP (tomcat)

前端 未结 3 477
无人及你
无人及你 2020-11-30 02:38

I\'m building a JSP application and I would like to use Facebook Connect as one path for user registration and authentication, but I\'m not finding much information about ho

3条回答
  •  醉话见心
    2020-11-30 03:21

    It doesn't take long to do the integration yourself, it's just OAuth 2.0 followed by an http request for some user details (json formatted).

    We have some code in github (that's quite tied to our social model) that checks the OAuth token and returns the user id (link at bottom of post). You can get the current user's access token from the cookie that the Facebook Connect JavaScript writes (the cookie name begins 'fbs_').

    https://github.com/mbst/common-social/blob/master/src/main/java/com/metabroadcast/common/social/auth/facebook/FacebookAccessTokenChecker.java

提交回复
热议问题