Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identifying Facebook Messenger user with UserID from a Facebook Login

I am trying out the new Facebook Messenger Platform and have hit a bit of a problem.

When a user first chats with my Bot, I want to use the sender.id to lookup the user in my DB and verify whether they're a customer or not and offer a more tailored UX.

User's sign up to my service using Facebook Login, but unfortunately it appears my App's Facebook ID & my Bot's Facebook ID are different due to IDs being limited to App-scopes.

Is there any way associate the 2 IDs to allow me to find a user in my DB?

UPDATE (4/20/2016): We got around this by asking users on first contact via messenger to click a link to login to their account so we could associate their messenger_id with their account in our DB.

Would be awesome if facebook instead included PAGE_SCOPED IDs in the ids_for_business endpoint.

UPDATE: (6/1/2016): Facebook's latest update includes a new "Account Linking" functionality that appears to solve this issue. See https://developers.facebook.com/docs/messenger-platform/account-linking

like image 928
Richard O'Brien Avatar asked Apr 13 '16 12:04

Richard O'Brien


People also ask

Is the login for Messenger the same as Facebook?

Your Messenger password is the same as your Facebook password. If you forgot your password, learn how to reset your password. Remember that you can also remove accounts you've added, but at least one account must remain active. People you message may also see that your account was recently created.

Can I find Facebook account with username?

Go to the Find Your Account page at facebook.com/login/identify and follow the instructions. Make sure to use a computer or mobile phone that you have previously used to log into your Facebook account. Search for the account you want to recover. You can search for your account by name, email address, or phone number.


2 Answers

Facebook's latest update includes a new "Account Linking" functionality that appears to solve this issue. See https://developers.facebook.com/docs/messenger-platform/account-linking

like image 107
Richard O'Brien Avatar answered Sep 19 '22 18:09

Richard O'Brien


Unfortunately, there's no way of doing that currently. Asking them to login for new threads is the best way of linking accounts.

like image 28
pschang Avatar answered Sep 17 '22 18:09

pschang