Several problems and solutions of integrated third-party login

Source: Internet
Author: User

{"MSG": "The user Modify password wrong", "ret":-73}

Recently integrated SHARESDK third-party login, log in when the first time will be authorized to obtain user information, then each login will not be authorized again. Third-party log in when it is best to adjust the authorization interface to log in again, because if the user changed the password of QQ, login will return the failure.

Below is a sample of SHARESDK QQ Login example below

Final Platform qqchat = Sharesdk.getplatform (context,qq.name);
Qqchat. Ssosetting (false);//Preferences call Phone Client interface True is the Web interface
Qqchat.setplatformactionlistener (New Platformactionlistener () {

@Override
public void OnError (Platform arg0, int arg1, throwable arg2) {
TODO auto-generated Method Stub
LOG.I ("QQ login Error", Arg1+arg2.getmessage ());
}

@Override
public void OnComplete (Platform arg0, int arg1, hashmap<string, object> map) {
TODO auto-generated Method Stub
LOG.I ("QQ Login Success", map.tostring ());
String Uid=arg0.getdb (). GetUserId ();

}

@Override
public void OnCancel (Platform arg0, int arg1) {
TODO auto-generated Method Stub
LOG.I ("QQ cancellation login", arg1+ "");
}
});

Re-authorize the authorization screen if authorized
if (Qqchat.isvalid ()) {
Qqchat.removeaccount ();
}
Qqchat.showuser (NULL);

Several problems and solutions of integrated third-party login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.