I've a problem using facebook messenger api (graph), I have a webhook (which is my web server) in PHP that manage my messenger bot page behavior.
I've successfully configured it but I don't know how to get user infos like birthday, last_name, email, gender etc...
I've just the message and the id of the user
$senderId = $input['entry'][0]['messaging'][0]['sender']['id'];
$messageText = $input['entry'][0]['messaging'][0]['message']['text'];
I suppose that there is no additional datas sent to my webhook, but i've well configured subscriptions for my webhook. How to retrieve all informations about a user chatting with my bot ?
Related
I want to develop a chatbot that can trigger when a user comments on a post on the page, then it will automatically reply and send a message to that user.
I'm referencing the following facebook documentation but it doesn't seem right
https://developers.facebook.com/docs/permissions/reference/pages_read_user_content
I am using AWS Cognito to manage my user pools. Users can signup using email, Apple, Facebook & Google.
Email registered users are required to confirm their account (through email verification). I want to have the same behaviour for social signup but unsuccessful (will leave this issue for another question).
I am using AWS Pinpoint to reach my user pool by email. When creating a campaign only users who did signup with email & password receives the email (not social users), and I don't understand why. Any idea of what could be the cause of the problem, or perhaps the solution?
Additional information:
Tried verify social user's emails manually (using aws admin privileges) => users still don't receive emails.
Did export my segment to csv, and apple relay email endpoints are in the segment (with an Active status) => but still no email received by social users (not forwarded for this case)
Thank you all for you assistance
I am doing a web app in Django. I hardly tried to create a TokenGenerator for verifying the user's email to activate the user's account
coming to the problem,
how to send the verification email to the user account while
signup. while signup, users can receive a verification link email
with a token generator
the user has to input the password at the time of account signup
After verifying the email user can log in to the respective page via their mail id and password
while login it should check whether an email is present in the DB
(DB will be updated with user emails )
for the first question, Django has built-in functions and classes for sending emails, you can check them here: https://docs.djangoproject.com/en/3.2/topics/email/ and this post will help you send and email: https://dev.to/yash2115/how-to-send-e-mail-in-django-37ge, and if you want sen an email for any user's sign up you have to use signals, check it here: https://docs.djangoproject.com/en/3.2/ref/signals/
other questions are all related and they are pre-built in Django, these links will help you: https://learndjango.com/tutorials/django-login-and-logout-tutorial
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication
repositories which may help:
https://github.com/shoukreytom/pdfstack
https://github.com/shoukreytom/notes
https://github.com/shoukreytom/blog (advanced - apis)
https://github.com/mitchtabian/Food2Fork
We are using Django-allauth for user subscription management with an optional email confirmation and few social provider (facebook, google, etc).
We wanted to start a flow when the confirmation email in sent.
The entire flow doesn't use views as it just sends emails to convince new users to complete their profile.
The StartView seems to be required in Flows, and I don't understand how to activate the flow without a view.
I have a mobile application that supports classic login (with email/password) and facebook login. In case of facebook login, I wonder if user can skip entering the password ?
In more detail, the user table will just have email, password_hash (optional field).
All the interactions user does with the system will be via a token (not the facebook token) that the server sends back.
After when user logs in (on a different device for example) via Facebook button, the server will check their account by querying user email in graph API using user's facebook token. The returned email will be checked against the email provided by user. If they are equal, a token is created and sent back to client.
So the schema will be
Client (mobile app):
user clicks 'log in'
app gets facebook_token and email.
App sends this token and email to server
Server:
uses the facebook_token to get user email from graph API.
if returned email == provided email, create a token and send it back to client.
Client: receive the token and do all the transaction with this token.
Thanks in advance !
The user cannot skip entering a password if they aren't logged into Facebook.
The app should never ask a user for his/her password. OAuth exists for this reason.