• Stars
    star
    139
  • Rank 257,500 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 16 years ago
  • Updated almost 15 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.

Frankie

Frankie (facethesinatra.com) is a plugin for the Sinatra web framework (sinatrarb.com) that allows you to easily create a Facebook application by using the Facebooker gem.

Written by Ron Evans (www.deadprogrammersociety.com)

Based on merb_facebooker (github.com/vanpelt/merb_facebooker) by Chris Van Pelt, which was based on the Rails classes in Facebooker (facebooker.rubyforge.org/) by Mike Mangino, Shane Vitarana, & Chad Fowler

2/20/2009 - Now updated to Sinatra 0.9 and facebooker thanks to mjfreshyfresh.

Thanks, everyone!

Here is a very simple example application:

require ‘rubygems’ require ‘frankie’

configure do set_option :sessions, true load_facebook_config “./config/facebooker.yml”, Sinatra.env end

## facebooker helpers before do ensure_authenticated_to_facebook ensure_application_is_installed_by_facebook_user end

## the site get ‘/’ do body “<h1>Hello #{session.user.name} and welcome to frankie!</h1>” end

How to use frankie

  • Install the frankie gem (which will install both Sinatra and Facebooker if you do not already have them)

sudo gem install frankie

  • Create the application directories for your new app

mkdir myapp cd myapp mkdir config

  • Put your facebooker.yml file into the /myapp/config directory, and set the values to your information. Here is a simple example of the file:

development: api_key: apikeyhere secret_key: secretkeyhere canvas_page_name: yourcanvashere

callback_url: localhost:4567 test: api_key: apikeyhere secret_key: secretkeyhere canvas_page_name: yourcanvashere

callback_url: localhost:4567 production: api_key: apikeyhere secret_key: secretkeyhere canvas_page_name: yourcanvashere

callback_url: yourrealserver.com

  • Make sure you have setup your Facebook application on the facebook site. Google “setup new facebook application” if you are unsure how to do this. I recommend starting with an IFrame application. A more advanced and cooler approach uses a tunneling script, which is included with Frankie. You do need to have “autossh” installed in order to use it, as well as a publicly addressable server. From a command prompt type tunnel <host> <remote_port> <local_port> like this:

tunnel app.myhost.com 10000 4567

You will also need to make sure your server’s /etc/ssh/sshd_config contains the following line:

GatewayPorts clientspecified

Thanks to the many people like Evan Weaver, Blake Mizerany, and whoever else that have provided the code used in this tunneling script.

  • Create your application, based on the sample above, and then run it:

ruby sample.rb

Have fun!

More Repositories

1

spork

Execute some aynchronous code using Sinatra running under Passenger
Ruby
42
star
2

flying_robot

Creation of Unmanned Aerial Vehicles using Ruby Arduino Development (RAD)
Ruby
30
star
3

phonegap-android

Android OS implementation of the PhoneGap API
Java
12
star
4

railsconf-2011-musicjam

Music jam for RailsConf 2011
7
star
5

hebruby

Hebrew date conversion library for Ruby
Ruby
6
star
6

fosdem2017

High-performance Robotics/IoT Using Gobot & Golang - Presentation at FOSDEM 2017
CSS
6
star
7

cell-tower-abuse

Website to protest and prevent telecos from building cell phone towers in residential neighborhoods by abusing Public Right Of Way (PROW) laws
Ruby
6
star
8

mercury

Ground control software written using Shoes for flying_robot
Ruby
5
star
9

flying_robot_rogue_one

First Unmanned Aerial Vehicle created using flying_robot and Ruby Arduino Development (RAD)
Ruby
5
star
10

gophercon-preso-2018

Gophercon 2018 presentation
CSS
4
star
11

cloudlife

Go
4
star
12

wasmio-2024

Slides for presentation at WASM I/O 2024 conference.
CSS
4
star
13

railsconf2009-music-jam

The musical jam session at RailsConf 2009
3
star
14

thingscon2018

CSS
3
star
15

flying_robot_blimpduino

Implementation of flying_robot add-ons for Ruby Arduino Development (RAD) to support the Blimpduino
Ruby
3
star
16

railsconf2010-music-jam

RailsConf 2010 Music Jam Session
3
star
17

dean

something very very cool
3
star
18

houston

Flight control joystick that supports flying_robot protocol created with Ruby Arduino Development
Ruby
2
star
19

rubyconf2009-music-jam

The musical jam session at RubyConf 2009
2
star
20

fosdem-2021

My slides and demos from FOSDEM 2021 talk "Go Without Wires"
CSS
2
star
21

ey-cloud-recipes

A starter repo for custom chef recipes on EY's cloud platform
Ruby
2
star
22

fosdem-2022

CSS
2
star
23

flying-robot

A set of Ruby libraries to assist in the creation of Unmanned Aerial Vehicles
2
star
24

phonegap-palm

Palm WebOS implementation of the PhoneGap API
2
star
25

fosdem-2018

Talk from FOSDEM 2018 - Computer Vision Using Go And OpenCV 3
CSS
2
star
26

golab-2023

Closing keynote at Golab 2023
CSS
2
star
27

jqtouch-scrolling

Extension for the jqTouch mobile library to incorporate the iScroll library for scrolling
1
star
28

gopherconeu-2023

Lightning talk at Gophercon EU 2023
CSS
1
star
29

cncfwasm2022

Presentation for CNCF WASM Day 2022
CSS
1
star
30

fosdem2024

CSS
1
star