Ok ... found a way without updating the gem.
You can add the following to your config/initializers/devise.rbfile in the line config.omniauth:
client_options: {
site: "https://graph.facebook.com/v2.3",
authorize_url: "https://www.facebook.com/v2.3/dialog/oauth"
},
token_params: {
parse: :json
}
YMMV , :
config.omniauth :facebook, ENV["FACEBOOK_KEY"], ENV["FACEBOOK_SECRET"],
scope: 'email',
secure_image_url: true,
auth_type: 'https',
info_fields: 'email,name,first_name,last_name',
client_options: {
site: "https://graph.facebook.com/v2.3",
authorize_url: "https://www.facebook.com/v2.3/dialog/oauth"
},
token_params: {
parse: :json
}
, , json ( URL- ), , , api.