Add facebook_obj_id bigint column to achievements table to store the id number when a badge is created for the achievement. References Coursemology/coursemology.org#100.
Merge branch 'development' of https://github.com/Coursemology/coursemology.org into issue-100 to keep it up to date.
Call Facebook API to add a custom story badge object to the app when an achievement is created. The app namespace is currently hardcoded. Save the Facebook object id returned into the database. References Coursemology/coursemology.org#100.
Pull FB graph object initialization to a separate function so it can be used in other controller actions. Delete badge when achievement is deleted and if it could not be created. References Coursemology/coursemology.org#100.
Update Facebook badge object when Achievement is updated. References Coursemology/coursemology.org#100
Save Facebook access token into session when user logs in with Facebook.
References Coursemology/coursemology.org#100.
Add facebook controller to post custom story to FB graph. This commit currently has the app namespace and badge ID hardcoded. Add very basic 'Share to Facebook' button to the achievement popup. Add route for POST to the facebook controller.

References Coursemology/coursemology.org#100.
Finish up facebook controller so it takes the badge object_id as a parameterand posts the right badge to facebook. Respond to an AJAX request by returning a js template.

Add a js template to close the achievement modal popup when the 'Share to Facebook' button is clicked.

Add an id to the achievement modal popup so it can be targeted by js.

References Coursemology/coursemology.org#100.
Merge remote-tracking branch 'upstream/development' into issue-100

Conflicts:
	app/controllers/achievements_controller.rb

:create shouldn't need to load course data as it is invoked from new
Merge remote-tracking branch 'upstream/development' into issue-100
Get app namespace using the GraphAPI to use in other GraphAPI calls. References Coursemology/coursemology.org#100
Style 'Share to Facebook' button for achievement popup so it is inline with the 'Yay' button and blue in colour. References Coursemology/coursemology.org#100.
Only show Facebook share button if the achievement has a facebook object id. References Coursemology/coursemology.org#100.
Move achievement logo to the left of the notification popup. Adjust size and position of modal content. References Coursemology/coursemology.org#100.
Catch APIErrors if posting to FB with Koala fails. No error is shown to the user but the modal closes. Only show FB share button if there is an FB access token in the session.

References Coursemology/coursemology.org#100.
Undo incorrectly handled merge conflict in the achievements controller from Coursemology/coursemology.org#126.

References Coursemology/coursemology.org#100.
Add exception handling to delete and update methods in the achievements controller. These catch errors when updating or deleting achievements which do not have facebook object IDs.

References Coursemology/coursemology.org#100.
Merge pull request #167 from fonglh/issue-100

Issue 100 - Post Achievement badges to Facebook