https://github.com/vy/play-facebook
Ready to go Play Framework application with Facebook Login integration.
https://github.com/vy/play-facebook
Last synced: over 1 year ago
JSON representation
Ready to go Play Framework application with Facebook Login integration.
- Host: GitHub
- URL: https://github.com/vy/play-facebook
- Owner: vy
- Created: 2012-03-11T11:32:39.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-11T11:33:02.000Z (over 14 years ago)
- Last Synced: 2024-10-03T13:17:44.241Z (almost 2 years ago)
- Language: Java
- Homepage: http://vyazici.blogspot.com/2012/02/facebook-login-and-secure-module.html
- Size: 137 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
play-facebook is a [Play Framework](http://www.playframework.org/) archetype providing basic Facebook authentication mechanics. It integrates Facebook Login into [Secure](http://www.playframework.org/documentation/1.0/secure) module infrastructure. Hence, if you are familiar with Secure module, you can directly bootstrap your own Facebook Login integrated application.
# Installation
1. Checkout the play-facebook sources and do `play deps`.
3. Edit `FBOAuth` variable in `app/controllers/Security.java` according to your Facebook Application credentials. ([Doesn't have one yet?](http://www.facebook.com/developers/createapp.php))
4. Do `play run`.
# Usage
You don't need any other extra configurations. Just start using `@With(Secure.class)` and/or `@Check("admin")` annotations within your controller classes.
As a side node, all login failures will be redirected to `Application.index()`. You can alter this behaviour by editing the `views/login.html`.