lib/fb/auth.rb in fb-auth-0.1.2 vs lib/fb/auth.rb in fb-auth-0.1.3

- old
+ new

@@ -1,7 +1,10 @@ -require 'fb/request' require 'fb/configuration' +require 'fb/user' +require 'fb/page' +require 'fb/metric' +require 'fb/request' # Ruby client to authenticate a Facebook user. # @see http://www.rubydoc.info/gems/Fb/ module Fb # Provides methods to authenticate a user with the Facebook OAuth flow. # @see https://developers.facebook.com/docs/facebook-login @@ -41,10 +44,10 @@ {host: 'www.facebook.com', path: '/dialog/oauth', params: url_params} end def short_term_token_params {}.tap do |params| - params[:client_secret] = Fb.configuration.client_id + params[:client_secret] = Fb.configuration.client_secret params[:redirect_uri] = @redirect_uri params[:code] = @code end end