Search code examples
iosquickblox

QuickBlox : FB user cannot login in the chat


I have created an ios app using QuickBlox ios SDK. In that I have provided manual and Facebook login options. After logged in using Facebook, I could not logged into the chat. But there is no such problem for Manual login. This is the error it is showing: QBChat/didNotAuthenticate, error:

Is there anything I needed to do specifically after Facebook login inorder to login to the chat?


Solution

  • please read about chat password http://quickblox.com/developers/Chat#Password

    if you are using social login, password for chat will be equal qb session token

    QBUUser *user = [QBUUser user];
    user.ID = 298;
    user.password = [BaseService sharedService].token;
    [[QBChat instance] loginWithUser:user];