iOS开发怎么样做第三方登陆(友盟社会化分享)

时间:2023-03-08 16:12:52
iOS开发怎么样做第三方登陆(友盟社会化分享)

基于前一篇文章   自定义UI后

实现如下代码   即可

//第三方登陆

//    UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager getSocialPlatformWithName:UMShareToWechatSession];

//

//    snsPlatform.loginClickHandler(self,[UMSocialControllerService defaultControllerService],YES,^(UMSocialResponseEntity *response){

//

//        if (response.responseCode == UMSResponseCodeSuccess) {

//

//            UMSocialAccountEntity *snsAccount = [[UMSocialAccountManager socialAccountDictionary]valueForKey:UMShareToWechatSession];

//

////            NSLog(@"username is %@, uid is %@, token is %@ url is %@",snsAccount.userName,snsAccount.usid,snsAccount.accessToken,snsAccount.iconURL);

//

//            NSLog(@"%@",snsAccount);

//

//        }

//

//    });