从Facebook登录识别具有UserID的Facebook Messenger用户 [英] Identifying Facebook Messenger user with UserID from a Facebook Login

查看:557
本文介绍了从Facebook登录识别具有UserID的Facebook Messenger用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试新的Facebook Messenger平台,并且遇到了一个问题。



当用户首次与我的博客聊天时,我想使用 sender.id 查找我的数据库中的用户,并验证他们是否是客户,并提供更具量身定制的UX。



用户注册我的服务使用Facebook登录,但不幸的是,它出现我的应用程序的Facebook ID&我的博客的Facebook ID是不同的,因为ID限于应用范围。



有没有任何方式将2 ID相关联,以允许我找到一个用户我的DB?



更新(4/20/2016):
我们通过向用户询问首先通过信使联系点击链接登录到他们的帐户,以便我们可以将他们的messenger_id与他们的帐户关联到我们的数据库。



如果Facebook而不是包含PAGE_SCOPED ID

更新:(6/1/2016):
Facebook的最新更新包括一个新的帐户链接功能,可以解决这个问题。请参阅 https://developers.facebook.com/docs/messenger-platform/account-linking

解决方案

Facebook的最新更新包括一个新的帐户链接功能,可以解决这个问题。请参阅 https://developers.facebook.com/docs/messenger-platform/account链接


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

解决方案

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

这篇关于从Facebook登录识别具有UserID的Facebook Messenger用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆