nsanta / fbgraph

Facebook Open Graph API in Ruby
MIT License
324 stars 40 forks source link

No configured canvas_url causes the class to be unusable #46

Closed TheEmpty closed 13 years ago

TheEmpty commented 13 years ago

Error: undefined method []' for false:FalseClass .bundle/gems/ruby/1.8/gems/fbgraph-1.7.1/lib/fbgraph/authorization.rb:10:inauthorize_url'

(only showing relevant lines below) Auth 10: params = { :redirect_uri => FBGraph.config[:canvas_url] }.merge(params)

FBGraph.config load_config(File.join(Rails.root , 'config' , 'facebook.yml')).freeze

FBGraph.load_config return false unless File.exist?(yaml_file)

nsanta commented 13 years ago

fixed on master. Thanks to @pwnall. I will publish a new gem version today.