Demo Facebook Open Graph application deployable to Heroku
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 49 commits ahead of csaltos:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
.gitignore
.rvmrc
Facebook Apps and Your Business.pdf
Gemfile
Gemfile.lock
Procfile
Readme.md
app.rb
config.ru
fb_demo.sublime-project
fb_demo.sublime-workspace
snippets.txt

Readme.md

Levi's Food App - Facebook Open Graph demo application

This is a sample app showing a basic implementation of Facebook Open Graph, written in Ruby, designed for deployment to Heroku.

Run locally

Install dependencies:

bundle install

Create an app on Facebook and set the Website URL to http://localhost:5000/.

Copy the App ID, Secret and Namespace from the Facebook app settings page into your .env:

echo FACEBOOK_APP_ID=12345 >> .env
echo FACEBOOK_SECRET=abcde >> .env
echo FACEBOOK_APP_NS=name_space >> .env
APP_URL=http://localhost:5000/

Launch the app with Foreman:

foreman start

Deploy to Heroku directly

If you prefer to deploy yourself, push this code to a new Heroku app on the Cedar stack, then copy the App ID, Secret, Namespace and App URL into your config vars:

heroku create --stack cedar

take note of your App URL

git push heroku master
heroku config:add FACEBOOK_APP_ID=12345 FACEBOOK_SECRET=abcde FACEBOOK_APP_NS=SOMETHING APP_URL=http://SOMETHING.herokuapp.com/