Facebook Coffee Demo
Facebook docs are available here.
Checkout coffee/index.coffee for the code samples, otherwise to set up the demo follow the instructions in the next section.
In order to run this demo, you must serve the index.html file from a domain, (and not 'file://...').
On OSX, I added these lines to
<VirtualHost *:80> ServerName fb_coffee_demo.com ServerAlias fb_coffee_demo.com DocumentRoot "/Users/goggin/projects/coffee/facebook_sdk" <Directory /Users/goggin/projects/coffee/facebook_sdk> Allow from all </Directory> </VirtualHost>
Of course, change the 2 paths there to wherever you have downloaded these files.
And these lines to
If you chose a domain different than
fb_coffee_demo.com, then replace
fb_coffee_demo.com with your domain in index.coffee.
After kicking apache with
sudo apachectl graceful, I can now visit fb_coffee_demo.com in my browser.
Setting up your Facebook App
index.coffee and add your appropriate application ID. Also, make sure that your "site url" is set to "fb_coffee_demo.com" in your facebook app.
Run this command from the directory
index.html lives in if you are making edits to the coffee files: