Facebook Connect for Java Web Application Login

cgray1223 used Ask the Experts™

I've search around and I'm a bit confused as the best approach to allow facebook users access to my website using facebook connect. My web site is written in Java and I'm using Spring Security. Everything out there (spring social, facebook-java-api...etc) all seems somewhat implemented but doesn't provide examples to do the below, any ideas?  I just want to provide a sign up and login using facebook credentials.

-provide facebook connect button that lets user auth with their facebook credentials and then have it callback to a java service within my application so that I can create a user record in my database.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014

But i think it simplest to connect with Javascript : http://fbrell.com/auth/all-in-one
Once the login event is fired you may call a servlet with ajax to update the status (or if I understand create the user in the database)


leakim971, do you have the source for the fbrell.com/auth/all-in-one?  I was interested in how the Facebook Connect button is created.  Some examples have you use the cross domain file..etc.  I couldn't learn that from viewing the html source...thanks for the help!
Top Expert 2014

Check this page : http://developers.facebook.com/docs/guides/web/

<fb:login-button>Login with Facebook</fb:login-button>

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial