2
我用gloox與我的Facebook好友聊天,身份驗證機制是X-FACEBOOK-PLATFORM。 現在我使用OAuth1.0 facebook sdk,但facebook會將sdk更改爲OAuth2.0。我不知道如何登錄Facebook訪問令牌的聊天。如何登錄Facebook與gloox聊天
現在連接之前,我的Facebook聊天驗證碼如下:
client_.setSASLMechanisms(SaslMechFacebook);
string key(ini.api_key);
key += "|" + string(password) + "|" + string(ini.secret_key);
//password is the session key facebook returned
client_.setAuthcid(key);
如何改變這種代碼,以適應OAuth2.0的?