美文网首页
iOS 解决 友盟分享至新浪微博成功后无法跳转原APP或者跳转到

iOS 解决 友盟分享至新浪微博成功后无法跳转原APP或者跳转到

作者: CoderZb | 来源:发表于2018-12-04 15:01 被阅读20次

    代理方法- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions NS_AVAILABLE_IOS(3_0);中,配置的新浪微博有问题。

    问题分析

    新浪微博的appKey appSecret,这里用了友盟demo里面的,所以分享成功没有回到原APP或者返回到了别的APP

    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Sina appKey:@"3921700954"  appSecret:@"04b48b094faeb16683c32669824ebdad" redirectURL:@"https://sns.whalecloud.com/sina2/callback"];
    

    解决办法

    将当前APP里面的appKey appSecret设置成和新浪微博开放平台配置的应用名称中的appKey appSecret保持一致。例如新浪微博开放平台配置的应用名称中的appKey appSecret为分别为AAAAA,BBBBB,那么APP中配置的appKey appSecret也必须为AAAAA,BBBBB

    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Sina appKey:SinaAppKey  appSecret:SinaSecret redirectURL:@"https://sns.whalecloud.com/sina2/callback"];
    

    详情描述:

    APP中的appKey appSecret

    image.png
    新浪微博开放平台配置的appKey appSecret
    image.png

    相关文章

      网友评论

          本文标题:iOS 解决 友盟分享至新浪微博成功后无法跳转原APP或者跳转到

          本文链接:https://www.haomeiwen.com/subject/rvwmcqtx.html