2017-09-21 1 views
0

페이스 북 기능으로 로그인하여 Android 용 채팅 응용 프로그램을 만들고 있습니다. XMPP를 IM 프로토콜로 사용하기로 결정했습니다. 이미 페이스 북 로그인 API로 등록을 구현할 수 있었지만 지금은 XMPP 서버에 로그인하는 방법을 통합하는 방법에 대해 궁금합니다. MySQL 용 데이터베이스와 Smack API를 사용하여 OpenFire 서버를 사용합니다. 서버에 연결할 때 사용자 이름과 비밀번호를 제공해야하지만 Facebook 로그인 API에서 얻는 유일한 정보는 공개 프로필과 Facebook 사용자 ID입니다.Facebook 로그인 API로 XMPP 사용자를 인증하려면 어떻게해야합니까?

OpenFire에서 Facebook 인증 API를 사용하여 사용자를 인증하도록하려면 어떻게해야합니까?

답변

0
Facebook has implemented XMPP Server for us, so we just need to make the implementation for client. 
After googled, i’ve found one Java XMPP Client API called SMACK that I think is suitable for this case. So, I’m going to use this API. 
First, you have to download the API from here (last stable version was 3.2.1 when I wrote this note). 
After downloaded the API (whether in zip or tar.gz), extract that compressed file to your local directory in your machine. 
The file has already came with several documentation, examples, and Doc API. So, it will be easy for us to learn. 
For basic use, there are 3 required jar files for this API as follows: 

smack.jar 
smackx.jar 
smackx-debug.jar (used for debug mode, i.e. if you turn on the debug mode). 
This link may help you out. please try this. 

Facebook Chat Xmpp Services

+1

페이스 북 채팅 API는 사용되지 않으며 또한, 나는 페이스 북의 인스턴트 메신저에 연결하지 않도록, 나는 내 자신의 메신저을하지만, 자신의 페이스 북 계정에 자사의 사용자를 인증하고 싶다. – Mesayah

관련 문제