Skip to content

Facebook provider doesn't work with Facebook API version 'v2.3' and above #52

@Folleo

Description

@Folleo

Facebook changed access_token format response in version 2.3, so now it returns :json format. See https://developers.facebook.com/docs/apps/changelog

Oauth2 gem can handle :json, but in facebook provider there is no option to change :parse option from :query to :json.

In facebook.rb in method process_callback we have :parse option:

def process_callback(params, _session)
        args = {}.tap do |a|
          a[:code] = params[:code] if params[:code]
        end

        get_access_token(args, token_url: token_url, mode: mode,
                               param_name: param_name, parse: parse)
end

But it's always :query (@parse = :query) and there is no ability to change it via config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions