代理方法
- (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

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

网友评论