diff --git a/README.md b/README.md index 1d5a083..d40af9c 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Facebook messenger platform api full features are supported * [greeting text](#greeting-text) * [get started button](#get-started-button) * [persistent menu](#persistent-menu) +* [Fetch user/page profile](#fetch-userpage-profile) * [Example](#example) @@ -366,6 +367,16 @@ def click_persistent_menu(payload, event): print("you clicked %s menu" % click_menu) ``` +# Fetch user/page profile +``` +page_id = page.page_id +page_name = page.page_name +user_profile = page.get_user_profile(event.sender_id) # return dict +print(user_profile) + +#{"first_name":"...", "last_name":"...", "profile_pic":"...", "locale":"...", "timezone":9, "gender":"..."} +``` + # Example 1. fill example/config.py