Skip to content

Commit 8fc8c9a

Browse files
committed
add facebook
1 parent 51ed887 commit 8fc8c9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/currency_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def webhook3
127127
#--------------------------------------------------------------
128128

129129
def webhook_facebook
130-
Facebook::Messenger::Subscriptions.subscribe(access_token: ENV["FB_ACCESS_TOKEN"])
131-
"OK"
130+
#Facebook::Messenger::Subscriptions.subscribe(access_token: ENV["FB_ACCESS_TOKEN"])
131+
render plain: params[‘hub.challenge’], status: 200
132132
end
133133
end

0 commit comments

Comments
 (0)