Note: Make sure that your app gets the permission of get_user_info from the user when logging in the QQ account via the QQ SDK (For more information, see the QQ official documentation. It is required for Kii Cloud to access the QQ user profile for the login process. Also, handle the case when the QQ user doesn't give this permission to your app.
Set the QQ access token and OpenID to the access_token and openID parameters of options.
Authenticate the user with the logIn() method. The first argument specifies the target social network, KiiSocialNetworkName.QQ. If the specified QQ account is new to Kii Cloud, the user is registered before the login.
If the login is successful, the user is cached inside the SDK as the current user and you can get the user information with the KiiUser.getCurrentUser() method.
Linking a Kii account to a QQ account
You can link existing Kii users to their QQ accounts. Linked users can log in to Kii Cloud via the Q authentication.
Here is the sample code for linking a Kii account to a QQ account. You basically just need to execute the linkCurrentUserWithNetwork() method.
Note that this sample code assumes that your mobile app has obtained a QQ access token and OpenID. For getting them, see the QQ official documentation.
Unlinking a Kii account from a QQ account
Here is the sample code for unlinking a Kii account from a QQ account. You basically just need to execute the unLinkCurrentUserFromNetwork() method.