One: Integration of Friends of the League to share
Do a third-party login now most of the Friends of the Alliance, do third-party login when the first download the SDK, and then read the document yourself, in fact, the official documents of the Friends of the Union has been very clear, here to write their own, do a note
II: Details
Friends League: http://www.umeng.com/
Write in Appdelegate
//设置分享到QQ/Qzone的应用Id,和分享url 链接 #import "UMSocialQQHandler.h" [UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:@"http://www.umeng.com/social"];
QQ Sign-in place
Umsocialsnsplatform *snsplatform = [Umsocialsnsplatformmanager getsocialplatformwithname:umsharetoqq]; Snsplatform. Loginclickhandler( Self, [Umsocialcontrollerservice Defaultcontrollerservice],YES, ^ (umsocialresponseentity *response) {//Get Weibo user name, UID, token, etc. if(Response. Responsecode= = umsresponsecodesuccess) {umsocialaccountentity *snsaccount = [[Umsocialaccountmanager socialAccountDict Ionary] VALUEFORKEY:UMSHARETOQQ];//qq Nickname, uid, token, avatar image URL NSLog(@"username is%@, UID was%@, token is%@ URL is%@", Snsaccount. UserName, Snsaccount. Usid, Snsaccount. Accesstoken, Snsaccount. IconURL); }});
This section of Snsaccount.username,snsaccount.usid,snsaccount.accesstoken,snsaccount.iconurl, respectively, represents the QQ nickname, UID, token, avatar image URL
Cat Learning iOS third-party login Friends League implementation