Introduction
This application aims to provide a quick and easy way for building Java Web Applications for Facebook.
It aims to provide a fast-track and all-inclusive dive deep into how the Facebook Web Applications can be built. So you can take this projects as an application model then you refactor it to meet your company's need.
Since it builds on top of open source tools, this project builds on top of proven frameworks. Like spring, struts, hibernate, tiles, etc. And it's free!.
One of the open source projects that facebook-java-webapp builds on top of is the facebook-java-api which is the open source project for keeping the compatibility of the java client for the REST facebook servers.
Showcased here: http://apps.new.facebook.com/java-webapp/
What can I expect now?
- Facebook Java API Integration
- Sending a notification on a user's action
- Publish a feed story using a FeedStory form
- Publish a feed through an API method call
- Register, list and deactivate all of an application's template bundles (TemplateBundleRegisterImpl)
- Validate facebook request
- Add users - when the user authorizes your application, they are stored in the database using Hibernate
- Spring integration
- Usage of Spring MVC as the web layer
- Hibernate integration as the ORM tool, includes the managing of the session within a request response lifecycle
- Maven, including the creation of the Database Schema
- Extensionless URLs
- Tiles as part of the View layer of the Spring MVC
- Json-lib is used for rendering jason objects
Project's Roadmap (What can I expect in the future?)
For release 0.3
- Make examples in JSP's of ALL the FBML tags.
For release 0.4
- Support Struts 2 as the Web MVC framework in a separate folder
- Integration with Facebook API REST Client for retrieval of friend data
Change log
Release 0.2 Done
- Support Struts 2 as the Web MVC framework in a separate folder moved to Release 0.4
- Add the database layer, to showcase a simple Add and Remove of a user
- Add an ORM layer with Hibernate
- Add sending notifications on certain user actions
- Add sending of a mini-feed, both through a trigger in the UI and the source code
- For security concerns add the md5 sum of the jar files moved to "Nice to have"
- Integration with Facebook API REST Client for retrieval of friend data moved to Release 0.4
"Nice to have"
- For security concerns add the md5 sum of the jar files
How to build and deploy
- Download the latest release from the download folder
- Put the war into an application server
- It should undeploy, configure the file under WEB-INF/lib/facebook.properties to your application specifications
How to create the database schema
$ cd trunk/springwebmvc-hibernate $ mvn process-test-resources
Where's the code
You can checkout the source using a subversion client, follow the steps in the Source tab at the top. Once you have it you can do whatever you want with it.
It is highly recommended you customize the code to fit your needs.