From a0d74c30fdbb40187436649561121a96d4904071 Mon Sep 17 00:00:00 2001 From: anishachhatwani Date: Tue, 29 Jan 2019 14:20:01 +0500 Subject: [PATCH] subscriber summary --- .../messenger/getStarted/getStartedWebhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/webhook_subscriptions/messenger/getStarted/getStartedWebhook.js b/server/webhook_subscriptions/messenger/getStarted/getStartedWebhook.js index 9a86098..c8a654e 100644 --- a/server/webhook_subscriptions/messenger/getStarted/getStartedWebhook.js +++ b/server/webhook_subscriptions/messenger/getStarted/getStartedWebhook.js @@ -93,7 +93,7 @@ function sendWelcomeMessage (payload) { } else { newSubscriberWebhook(payload) needle.get( - `https://graph.facebook.com/v2.10/${page.pageId}?fields=access_token`, + `https://graph.facebook.com/v2.10/${page.pageId}?fields=access_token&access_token=${page.accessToken}`, (err, resp2) => { if (err) { logger.serverLog(TAG, `ERROR ${JSON.stringify(err)}`)