Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Facebook Graph API OAuth example with Ruby and Sinatra
branch: master

This branch is 6 commits behind filiptepper:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.markdown
facebook-oauth-example.rb

README.markdown

Facebook Graph API OAuth Example

A simple Sinatra-based example of the new Facebook Graph API.

Setup

All you need to do is to configure your OAuth identity:

@client_id = "YOUR-CLIENT-ID-HERE"
@client_secret = "YOUR-CLIENT-SECRET-HERE"

That's it? Yep!

Now you can give it a spin:

ruby facebook-oauth-example.rb
open http://localhost:4567/
Something went wrong with that request. Please try again.