Facebook Graph API OAuth example with Ruby and Sinatra
Ruby
Switch branches/tags
Nothing to show
Latest commit 15bb66d Jan 7, 2015 @filiptepper Merge pull request #8 from apaganobeleno/master
Updated Readme.markdown

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"

Ensure you add http://localhost:4567/ to 'Valid OAuth redirect URIs' on your Facebook App Advanced Settings ![Valid OAuth redirect URIs] (http://oi62.tinypic.com/1441kwo.jpg)

That's it? Yep!

Now you can give it a spin:

ruby -rubygems facebook-oauth-example.rb
open http://localhost:4567/