From: Marnen Laibow-Koser Date: 2009-12-11T12:32:57+09:00 Subject: Re: non-rails simple facebook example? 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 marnen@marnen.org -- Posted via http://www.ruby-forum.com/.