Bindings of the facebook javascript graph-api in ocaml. It depends on the Goji, 'Ocaml-Javascript interoperability multi-tool.'
-
Install Goji, with the instructions depicted in https://github.com/klakplok/goji
-
Build and install
% make
% make install
-
Install Js_of_ocaml, through opam (http://opam.ocaml.org/).
-
Get an application id from facebook, by going to https://developers.facebook.com/,
tab Applications> Create an application. -
Set it in example/hello_me.ml#47.
-
Generate hello_me.js
% cd example
% make
-
Download the Facebook javascript library wget http://connect.facebook.net/en_us/all.js and set it in the same location as the index.html.
-
Deploy your [index.html, hello_me.js, all.js] in a web server directory, configured as allowed by your facebook application (2). Then open a browser at a link pointing to that index.html.