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(); }