QQ Login
-(void) Qqbtnclick: (UIButton *) btn
{
NSString *platformname = [Umsocialsnsplatformmanager getsnsplatformstring:umsocialsnstypemobileqq];
Umsocialsnsplatform *snsplatform = [Umsocialsnsplatformmanager getsocialplatformwithname:umsharetoqq];
Snsplatform.loginclickhandler (Self,[umsocialcontrollerservice defaultcontrollerservice],yes,^ ( Umsocialresponseentity *response) {
NSLog (@ "Login response is%@", response);
//Get Weibo user name, UID, token, etc.
if (Response.responsecode = = umsresponsecodesuccess) {
umsocialaccountentity *snsaccount = [[Umsocialaccountmanager socialaccountdictionary] valueForKey:platformName];
NSLog (@ "username is%@, UID was%@, token is%@,iconurl is%@", Snsaccount.username,snsaccount.usid,snsaccount.accesstoken , Snsaccount.iconurl)
}
});
}
The implemented callback
-(void) Didfinishgetumsocialdatainviewcontroller: (umsocialresponseentity *) response
{
[[Umsocialdataservice Defaultdataservice] requestsnsinformation:umsharetoqq completion:^ (UMSocialResponseEntity * Response) {
NSLog (@ "Snsinformation is%@", response.data);
}];
}
Always prompt QQ version low
The three-party login problem of iOS QQ is solved by UF league