public
Description: Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.
Homepage: http://www.deadprogrammersociety.com
Clone URL: git://github.com/deadprogrammer/frankie.git
Updates to README
Ron Evans (author)
Mon Apr 21 21:10:58 -0700 2008
commit  df9de5fa697ac0cb5cf289543eeda702e928d3c4
tree    f655168606edf54affd6d0045acb9a64dc0f3385
parent  e6ca960c79c1a5a58a9aa637b713d6311569fb26
...
27
28
29
30
 
31
32
33
...
59
60
61
62
 
 
 
 
 
 
 
 
 
63
64
65
...
27
28
29
 
30
31
32
33
...
59
60
61
 
62
63
64
65
66
67
68
69
70
71
72
73
0
@@ -27,7 +27,7 @@ Thanks, everyone!
0
 
0
   ## the site
0
   get '/' do
0
- body "<h1>Hello #{session['facebook_session'].user.name} and welcome to frankie!</h1>"
0
+ body "<h1>Hello #{session[:facebook_session].user.name} and welcome to frankie!</h1>"
0
   end
0
 
0
 
0
@@ -59,7 +59,15 @@ Thanks, everyone!
0
    callback_url: http://yourrealserver.com
0
 
0
 
0
-- 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 like this one: http://pastie.caboo.se/178903
0
+- 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:
0
+
0
+ tunnel app.myhost.com 10000 4567
0
+
0
+You will also need to make sure your server's /etc/ssh/sshd_config contains the following line:
0
+
0
+ GatewayPorts clientspecified
0
+
0
+Thanks to the many people like Evan Weaver, Blake Mizerany, and whoever else that have provided the code used in this tunneling script.
0
 
0
 - Create your application, based on the sample above, and then run it:
0
 ruby sample.rb

Comments

    No one has commented yet.