Reputation: 49
I'm currently building a Facebook messenger bot, and I wish to create a Django model to store users who communicate with my bot which is built in Django.
The USER API documentation states how to get a user's details, but I don't know how to incorporate it in my Model. Here is a link to the USER API.
Upvotes: 0
Views: 70
Reputation: 1503
Make a get request to https://graph.facebook.com/v2.6/?access_token=PAGE_ACCESS_TOKEN with sender id received and your page access token string, you will get a JSON containing some basic information about the user.
Upvotes: 1