Petar Kalpakliev
2009-Mar-05 19:09 UTC
[Facebooker-talk] problem with facebooker API methods
Hi all, I am having troubles with the Facebooker user methods. When I try to access an attribute of a facebook user, I get an error. For example when I try: print facebook_session.user.id.to_s I get the following error: undefined method `status_id='' for #<Facebooker::User::Status:0x46559ec @time="0", @message={}> ----------------------------- I suppose the problem might be in a changed facebooker API, but I am only guessing... I am running Windows xpl; rails 2.2.2, ruby 1.8.6 My current facebooker gem version is 0.9.5 / 2008-02-13, and I tried updating the gem, but I get the following error messages :( ----------------------------->gem update facebookerUpdating installed gems Updating facebooker Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb update facebooker creating Makefile nmake ''nmake'' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3 for inspection. Results logged to c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/gem_make.out I would be very very grateful if you help me out with this issue!!! Thanks, Petar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090305/e3260b56/attachment.html>
You should install the json_pure gem. That will let you install the newest facebooker. Mike On Mar 5, 2009, at 2:09 PM, Petar Kalpakliev wrote:> Hi all, > > I am having troubles with the Facebooker user methods. > When I try to access an attribute of a facebook user, I get an error. > > For example when I try: > print facebook_session.user.id.to_s > > I get the following error: > undefined method `status_id='' for #<Facebooker::User::Status: > 0x46559ec @time="0", @message={}> > > ----------------------------- > I suppose the problem might be in a changed facebooker API, but I am > only guessing... > I am running Windows xpl; rails 2.2.2, ruby 1.8.6 > My current facebooker gem version is 0.9.5 / 2008-02-13, > and I tried updating the gem, but I get the following error > messages :( > ----------------------------- > > >gem update facebooker > Updating installed gems > Updating facebooker > Building native extensions. This could take a while... > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) > ERROR: Failed to build gem native extension. > > c:/ruby/bin/ruby.exe extconf.rb update facebooker > creating Makefile > > nmake > ''nmake'' is not recognized as an internal or external command, > operable program or batch file. > > Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ > json-1.1.3 for inspection. > Results logged to c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ > ext/parser/gem_make.out > > > > I would be very very grateful if you help me out with this issue!!! > > Thanks, > Petar > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com