Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Woojung Kim authored Sep 5, 2016
1 parent 3045c17 commit 4005784
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4005784

Please sign in to comment.