Skip to content

Commit

Permalink
Ticket CV2-3727: Testing if we really need the instagram_basic permis…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
caiosba committed Oct 23, 2023
1 parent 8e5c935 commit 41d0822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/facebook_authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def setup_facebook
# pages_manage_metadata is for Facebook API > 7
# manage_pages is for Facebook API < 7
# An error will be displayed for Facebook users that are admins of the Facebook app, but should be transparent for other users
request.env['omniauth.strategy'].options[:scope] = 'pages_manage_metadata,manage_pages,pages_messaging,instagram_basic,instagram_manage_messages' if params[:context] == 'smooch'
request.env['omniauth.strategy'].options[:scope] = 'pages_manage_metadata,manage_pages,pages_messaging,instagram_manage_messages' if params[:context] == 'smooch'
prefix = facebook_context == 'smooch' ? 'smooch_' : ''
request.env['omniauth.strategy'].options[:client_id] = CheckConfig.get("#{prefix}facebook_app_id")
request.env['omniauth.strategy'].options[:client_secret] = CheckConfig.get("#{prefix}facebook_app_secret")
Expand Down

0 comments on commit 41d0822

Please sign in to comment.