Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/candrews/hammertime
Facebook project for RAI
https://github.com/candrews/hammertime
Last synced: about 1 month ago
JSON representation
Facebook project for RAI
- Host: GitHub
- URL: https://github.com/candrews/hammertime
- Owner: candrews
- Created: 2012-10-03T23:33:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:10:25.000Z (11 months ago)
- Last Synced: 2023-12-15T06:27:44.383Z (11 months ago)
- Language: Java
- Size: 10.7 MB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hammertime
==========Facebook project for RAI
## Developing with Eclipse
1. Install Eclipse
1. Install m2e-wtp from the Eclipse Marketplace
1. Import this directory as an existing Maven project
1. "Run as" this project on a server (such as Tomcat)
1. You may have to edit your hosts file to map www.integralblue.com to 127.0.0.1, then use www.integralblue.com/hammertime as the URL in your browser to get the application to work due to how Facebook binds cookies to app domains## Development notes
* You can use XFBML on the pages, see https://developers.facebook.com/docs/plugins/
* The template language is Thymeleaf: http://www.thymeleaf.org/
* All URLs use content negotiation to determine what response format to use. For example, when requested by a browser, the server returns HTML. When requested by an API client (with an accept header requesting application/json), the server returns json.
* The application gets the Facebook auth token from the cookie set by Facebook. But, if there isn't such a cookie included in the request, it will use the value of the HTTP Request Header "X-Facebook-Auth-Token" as the authentication token.
* If a URL requires authentication (aka a valid Facebook session), and there isn't one (in other words, no auth token could be found via either cookie or HTTP header), the server returns an HTTP 403 (Forbidden) response.