chore: Instagram reconnect fix (#3142)
This commit is contained in:
@@ -9,8 +9,9 @@ class Facebook::SendOnFacebookService < Base::SendOnChannelService
|
||||
send_message_to_facebook fb_text_message_params if message.content.present?
|
||||
send_message_to_facebook fb_attachment_message_params if message.attachments.present?
|
||||
rescue Facebook::Messenger::FacebookError => e
|
||||
Rails.logger.info e
|
||||
channel.authorization_error!
|
||||
Sentry.capture_exception(e)
|
||||
# TODO : handle specific errors or else page will get disconnected
|
||||
# channel.authorization_error!
|
||||
end
|
||||
|
||||
def send_message_to_facebook(delivery_params)
|
||||
|
||||
@@ -18,7 +18,8 @@ class Instagram::SendOnInstagramService < Base::SendOnChannelService
|
||||
send_to_facebook_page message_params
|
||||
rescue StandardError => e
|
||||
Sentry.capture_exception(e)
|
||||
channel.authorization_error!
|
||||
# TODO : handle specific errors or else page will get disconnected
|
||||
# channel.authorization_error!
|
||||
end
|
||||
|
||||
def message_params
|
||||
|
||||
Reference in New Issue
Block a user