简体   繁体   English

Facebook Chat API-使用电子邮件登录

[英]Facebook Chat API - login with email

I am creating a Facebook chat client. 我正在创建一个Facebook聊天客户端。 I've got it working through agsXMPP library, however I must login with user ID (user@chat.facebook.com). 我已经通过agsXMPP库对其进行了操作,但是我必须使用用户ID(user@chat.facebook.com)登录。 Is there a way to get user ID from user login email or just log in a special way with user email? 有没有办法从用户登录电子邮件中获取用户ID或仅以特殊方式使用用户电子邮件登录?

I think you're trying to log into the wrong server; 我认为您正在尝试登录错误的服务器; that sounds like how users would log into chat directly with username and password. 这听起来像用户将如何使用用户名和密码直接登录聊天。 To do this in your app, you need to use the API: https://developers.facebook.com/docs/chat/ - this involves sending a user to an auth dialog, where they approve your app to access their chat, and you get back an access token you can use to log into chat as the user 要在您的应用程序中执行此操作,您需要使用以下API: https//developers.facebook.com/docs/chat/-这涉及将用户发送到auth对话框,在该对话框中,他们批准您的应用程序以访问其聊天记录,并且您取回访问令牌,可以用来以用户身份登录聊天

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM