Skip to content

Commit

Permalink
Merge pull request #134 from arsengoian/master
Browse files Browse the repository at this point in the history
Added getPersistentMenu() method for convenience
  • Loading branch information
wittfabian authored Oct 22, 2018
2 parents a92e9d0 + ed70d35 commit 3628980
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions FbBotApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,19 @@ public function setPersistentMenu($localizedMenu)
'persistent_menu' => $elements
], self::TYPE_POST);
}

/**
* Get Nested Menu
*
* @see https://developers.facebook.com/docs/messenger-platform/messenger-profile/persistent-menu
* @return array
*/
public function getPersistentMenu()
{
return $this->call('me/messenger_profile', [
'fields' => 'persistent_menu',
], self::TYPE_GET);
}

/**
* Remove Persistent Menu
Expand Down

0 comments on commit 3628980

Please sign in to comment.