Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/generators/sorcery/templates/initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
# config.facebook.user_info_mapping = {:email => "name"}
# config.facebook.access_permissions = ["email", "publish_actions"]
# config.facebook.display = "page"
# config.facebook.api_version = "v2.2"
# config.facebook.api_version = "v2.3"
# config.facebook.parse = :json
#
# config.github.key = ""
# config.github.secret = ""
Expand Down
6 changes: 3 additions & 3 deletions lib/sorcery/providers/facebook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ module Providers
class Facebook < Base
include Protocols::Oauth2

attr_reader :mode, :param_name, :parse
attr_reader :mode, :param_name
attr_accessor :access_permissions, :display, :scope, :token_url,
:user_info_path, :auth_path, :api_version
:user_info_path, :auth_path, :api_version, :parse

def initialize
super
Expand All @@ -24,7 +24,7 @@ def initialize
@token_url = 'oauth/access_token'
@auth_path = 'dialog/oauth'
@mode = :query
@parse = :query
@parse = :json
@param_name = 'access_token'
end

Expand Down