I am trying to get this desktop tutorial working:
5-Minute Quick Start Guide for Facebooker ? Create a Facebook Desktop
Script Using Ruby in 3 Easy Steps
by Gerald Bauer
http://ruby.geraldbauer.ca/facebooker-desktop.html
Has anyone gotten this to work recently?
First I did the tutorial.
My first bug was that Curb was not found.
I solved that from this post:
http://groups.google.com/group/rfacebook/browse_thread/thread/313263a7242453ab
Now I get this bug:
c:/ruby/lib/ruby/site_ruby/1.8/facebooker/parser.rb:535:in `process'':
Invalid parameter (Facebooker::Session::MissingOrInvalidParameter)
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/parser.rb:15:in
`parse''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/service.rb:19:in
`post''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:510:in
`post_without_logging''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:521:in
`post''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/logging.rb:27:in
`log_fb_api''
? ? ? ?from c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure''
? ? ? ?from c:/ruby/lib/ruby/1.8/benchmark.rb:307:in `realtime''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/logging.rb:27:in
`log_fb_api''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:520:in
`post''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:437:in
`post''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:179:in
`secure!''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:574:in
`uid''
? ? ? ?from c:/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:217:in
`user''
? ? ? ?from C:/Documents and Settings/Scott/Desktop/fb.rb:14
Here is my code:
require ''facebooker''
session = Facebooker::Session::Desktop.create( ''xxx'',
''xxx'' )
puts session.auth_token ?#this makes the call to get auth token
puts "Paste the URL into your web browser and login:"
puts session.login_url + "&auth_token=#{session.auth_token}"
puts "Hit return to continue..."
gets
puts "What are you doing?"
puts "#{session.user.name}"
I have also tried this on OS X, but I have worse problems there.
Is there a problem with my code?
When I copy and paste the URL it gives me I get a login screen, but I
don''t get asked to give my application access.
On the facebook developers application page I have all defaults except
that I selected that this would be a desktop application. ?Is there
anything else I need?
Scott