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

代理方法- (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
iOS 解决 友盟分享至新浪微博成功后无法跳转原APP或者跳转到其他APP的问题_第1张图片
image.png

你可能感兴趣的:(iOS 解决 友盟分享至新浪微博成功后无法跳转原APP或者跳转到其他APP的问题)