Home > Technology > Facebooker error UnableToLoadAdapter

Facebooker error UnableToLoadAdapter

Quick note about the latest version of facebooker (as of July 31st 2009)

If you see an error that looks like

/home/brickfactor/facebooker_tutorial/vendor/plugins/facebooker/lib/facebooker
/adapters/adapter_base.rb:43:in `load_adapter': Facebooker::AdapterBase::UnableToLoadAdapter (Facebooker::AdapterBase::UnableToLoadAdapter)
/RAILS_APP/vendor/plugins/facebooker/lib/facebooker/adapters/adapter_base.rb:43:in `load_adapter': Facebooker::AdapterBase::UnableToLoadAdapter (Facebooker::AdapterBase::UnableToLoadAdapter)
from /RAILS_APP/vendor/plugins/facebooker/lib/facebooker.rb:121:in `load_adapter'
from /RAILS_APP/vendor/plugins/facebooker/lib/facebooker.rb:65:in `apply_configuration'
from /RAILS_APP/vendor/plugins/facebooker/lib/facebooker.rb:45:in `load_configuration'
from /RAILS_APP/vendor/plugins/facebooker/rails/../init.rb:6
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
... 16 levels...
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/generate.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'



Its because you haven’t configured config/facebooker.yml file correctly, or at all. (Most tutorials etc. have you creating and editing this file after you install facebooker)


Make sure you fill in all the details in the file, and you should see the error no more.

Categories: Technology Tags: , , ,
  • Engel Sanchez

    Thank you very much. The tutorial I was following does have the configuration of this file a few steps after trying to run it or generate the receiver page, but without this those fail. This was really helpful

  • http://dragonsbehere.com/ Akshay

    Engel,
    You’re more than welcome – let me know if you have any other questions, I’ll
    be happy to share what little I know.

    Cheers!

  • AkshayNavle

    Engel,
    You're more than welcome – let me know if you have any other questions, I'll
    be happy to share what little I know.

    Cheers!

  • Ivor

    Thanks, I was following this

    http://madebymany.co.uk/tutorial-for-restful_au…

    and got the same error. Many thanks :)

  • AkshayNavle

    No worries. Let me know if there is anything else I can help with. Cheers!

  • http://www.facebook.com/kevinyancy Kevin Yancy

    u rock. You addressed the exact issue I had while tinkering with a facebooker tutorial. Many thx 2 u my friend!

  • AkshayNavle

    No problem, Kevin – glad to have helped.

  • robertsanchez

    I am also using the http://madebymany.co.uk/tutorial-for-restful_au… tutorial and am currently editing the facebook.yml file.. I am having a hard time finding my canvas_page_name and pretty much everything below that… I've got the api_key and secret_key… thats all, any help would be awesome

  • robertsanchez

    actually.. i edited the yml file just fine… but now i'm getting an error when i go to /signup or /login that says undefined method `set_facebook_session' for #<SessionsController:0x10350a790>

    which came from the code from the tutorial: And add the following to ApplicationController

    layout 'index'
    before_filter :set_facebook_session
    helper_method :facebook_session

  • http://www.facebook.com/people/Hemali-Chauhan/794898488 Hemali Chauhan

    testing from rails app

  • AkshayNavle

    I'm guessing the test worked?