Hi
Has anyone got any recent ruby facebook examples? a simple session
desktop example.
im using ruby 1.8.6 and all the fb APIs out there eg
rfacebook/facebooker and numerous others simply don’t work.
eg. in the below i login in the webpage and then hit enter in and get a
big stacktrace.
Thanks
require 'rubygems'
require 'facebooker'
API_KEY = ‘xxxxx’
SECRET_KEY = ‘xxxxxxxxx’
session = Facebooker::Session::Desktop.create(API_KEY, SECRET_KEY)
puts session.login_url
puts “#{session.user.name}”
Gurpal 2000 wrote:
Hi
Has anyone got any recent ruby facebook examples? a simple session
desktop example.
im using ruby 1.8.6 and all the fb APIs out there eg
rfacebook/facebooker and numerous others simply don’t work.
Facebooker works fine – at least it does with Rails.
eg. in the below i login in the webpage and then hit enter in and get a
big stacktrace.
Yeah, great, you got a stacktrace. That’s as informative as saying
“help it doesn’t work”.
Now…where does the stacktrace tell you that your error is occurring?
And what error is it?
Thanks
require 'rubygems'
require 'facebooker'
API_KEY = ‘xxxxx’
SECRET_KEY = ‘xxxxxxxxx’
session = Facebooker::Session::Desktop.create(API_KEY, SECRET_KEY)
puts session.login_url
puts “#{session.user.name}”
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Yeah, great, you got a stacktrace. That’s as informative as saying
“help it doesn’t work”.
There was a “gets” missing after the line when the url is dumped, but
that was just a typo. Anyway, the facebook page says something on the
lines of “you may close the window and return” and then back in ruby
world i get this.
numerous wikis/webpages take you round and round. In the end I read many
places saying the APIs out there are out of date.
/home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/parser.rb:640:in
process': Incorrect signature (Facebooker::Session::IncorrectSignature) from /home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/parser.rb:36:in
parse’
from
/home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/service.rb:66:in
post' from /home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:638:in
post_without_logging’
from
/home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:649:in
post' from /home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/logging.rb:20:in
log_fb_api’
from /home/gurpal/ruby/lib/ruby/1.8/benchmark.rb:308:in
realtime' from /home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/logging.rb:20:in
log_fb_api’
from
/home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:648:in
post' from /home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/session.rb:565:in
post’
from
/home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/models/user.rb:203:in
populate' from /home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/model.rb:35:in
name’
from /home/gurpal/NetBeansProjects/fbmediaalbums/lib/main.rb:20
Gurpal 2000 wrote:
Yeah, great, you got a stacktrace. That’s as informative as saying
“help it doesn’t work”.
There was a “gets” missing after the line when the url is dumped, but
that was just a typo. Anyway, the facebook page says something on the
lines of “you may close the window and return” and then back in ruby
world i get this.
numerous wikis/webpages take you round and round. In the end I read many
places saying the APIs out there are out of date.
/home/gurpal/ruby/lib/ruby/site_ruby/1.8/facebooker/parser.rb:640:in
`process’: Incorrect signature (Facebooker::Session::IncorrectSignature)
[…]
It’s been a while since I did any Facebook development, but my
recollection is that this probably means that your Facebook session is
expired or not started. I’d suggest you read the Facebook developer
wiki, and ask this again on the Facebook dev forums if necessary.
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
(I did come across this http://fbtutorial.qsh.eu/default.aspx - i know
it’s not Ruby but this guy says that stuff simply isn’t updated in API
world)
I have encountered the same issue and solved it. So, I have made an
example with a demo here: http://simply-facebook.herokuapp.com/