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
image.png

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容