Skip to content

Commit

Permalink
Merge branch 'develop' into CV2-3798-shared-feed-invite-emails
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Oct 24, 2023
2 parents cce6ac7 + 41d0822 commit bb8c008
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 bb8c008

Please sign in to comment.