From 3dd411dbb8b7eab1365c7ccbbebcfbe0894a6394 Mon Sep 17 00:00:00 2001 From: Remigijus Kiminas Date: Thu, 22 Aug 2024 04:51:18 -0400 Subject: [PATCH] bugfix --- modules/lhfbmessenger/threadmy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lhfbmessenger/threadmy.php b/modules/lhfbmessenger/threadmy.php index 5607c29..fb24f95 100644 --- a/modules/lhfbmessenger/threadmy.php +++ b/modules/lhfbmessenger/threadmy.php @@ -12,10 +12,10 @@ $item = erLhcoreClassModelMyFBPage::fetch($Params['user_parameters']['id']); if ($Params['user_parameters_unordered']['action'] == 'addbutton') { - $messenger = Messenger::create($item->page_token); + $messenger = Messenger::create($item->access_token); $messenger->setStartedButton('GET_STARTED'); } else if ($Params['user_parameters_unordered']['action'] == 'rembutton') { - $messenger = Messenger::create($item->page_token); + $messenger = Messenger::create($item->access_token); $messenger->deleteStartedButton(); }