Facebook Connect for Java Web Application Login

cgray1223
cgray1223 used Ask the Experts™
on
Hello,

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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:
http://stackoverflow.com/questions/1360060/facebook-api-and-facebook-connect-using-java

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)

Author

Commented:
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!
leakim971Multitechnician
Top Expert 2014

Commented:
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