From d2e0b3ceae02987a154d499514c57167a87ae9b3 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Sun, 31 May 2015 21:52:57 +0300 Subject: [PATCH] Fix Facebook scopes for cross-posting Facebook deprecated their v1.0 API and thus the old ones no longer work (for new authorizations). closes #6019 [ci skip] --- Changelog.md | 1 + config/initializers/omniauth.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 5cd44138a..baba7ee61 100644 --- a/Changelog.md +++ b/Changelog.md @@ -23,6 +23,7 @@ * Replace vendored assets for facebox by gem [#6005](https://github.com/diaspora/diaspora/pull/6005) * Improve styling of horizontal ruler in posts [#6016](https://github.com/diaspora/diaspora/pull/6016) * Increase post titles length to 50 and use configured pod name as title in the atom feed [#6020](https://github.com/diaspora/diaspora/pull/6020) +* Remove deprecated Facebook permissions [#6019](https://github.com/diaspora/diaspora/pull/6019) ## Bug fixes * Disable auto follow back on aspect deletion [#5846](https://github.com/diaspora/diaspora/pull/5846) diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index 63b54f4e8..ba240c338 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -17,8 +17,8 @@ Rails.application.config.middleware.use OmniAuth::Builder do if AppConfig.services.facebook.enable? provider :facebook, AppConfig.services.facebook.app_id, AppConfig.services.facebook.secret, { - display: 'popup', - scope: 'publish_actions,publish_stream,offline_access', + display: "popup", + scope: "public_profile,publish_actions", client_options: { ssl: { ca_file: AppConfig.environment.certificate_authorities