mikechabot / AnotherGlass

Pour another glass...
0 stars 0 forks source link

Facebook Login #25

Closed will-clark closed 10 years ago

will-clark commented 10 years ago

https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/

app id = 215985131929804 app secret = 02e72bd76778e992d3d9b62599fabd88

https://cwiki.apache.org/confluence/display/OLTU/OAuth+2.0+Client+Quickstart

How to do the Shiro stuffs:

http://mrdwnotes.wordpress.com/2011/11/28/using-apache-shiro-security-to-allow-login-via-facebook-part-2/

will-clark commented 10 years ago

To get the avatar from facebook:

https://graph.facebook.com/41201119/picture?type=large

will-clark commented 10 years ago

This is complete.

If we're looking to test/demo functionality, I recommend modifying the hosts file on your local computer to map localhost to localhost.anotherglass.net and access the server via http://localhost.anotherglass.net.

Facebook requires us to setup a white list of acceptable domains to authenticate from and it doesn't allow plain old localhost.