Facebook application around profile data.
This application was made by Rémy Hannequin, Bastian Peghaire and Hervé Tran during a school project.
- CoffeeScript
- Handlebars.js
- jQuery
- Underscore.js
- Twitter Bootstrap
A CoffeeScript class named Facebook.coffee has been created in order to use the Facebook JavaScript SDK with some callbacks. Developers can write util method in the Util.coffee class.
If you have not CoffeeScript installed, please install it. To make CoffeeScript work in this project, you have to go to the project directory.
coffee -o js/ -cw coffee/
The JavaScript (generated by CoffeeScript) must not be written directly in the index file. The library Require.js is used to let in manage sources, librairies and dependances. Check the coffee/init.coffee file to understand how aliases are created and repect this convention of coding :
require ['fileAlias'], (File) ->
# Here, code from File is accessible
A Heroku application has been created in order to access the application from the Internet.
URL : big-brother-esgi.herokuapp.com
Facebook.login()
.fail(->
# Handle login error
)
.done((user) ->
# Some actions
)
Facebook.api('me/likes', 'get',
limit: 100
)
.fail(->
# Handle request error
)
.done((res) ->
# Some actions
)