openshare icon indicating copy to clipboard operation
openshare copied to clipboard

不用官方SDK,利用社交软件移动客户端(微信/QQ/微博/人人/支付宝)分享/登录/支付。

Results 95 openshare issues
Sort by recently updated
recently updated
newest added

QQ登录回调的参数不对

请问怎么支持新版的支付宝,我们服务器按照现在的支付宝标准生成的URL,然后我按照你的PHP示例中的方式进行封装了一下,( //生成可以直接打开的链接,让iOS客户端打开:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:$iOSLink]]; $iOSLink= "alipay://alipayclient/?".urlencode(json_encode(array('requestType' => 'SafePay', "fromAppUrlScheme" => /*iOS App的url schema,支付宝回调用*/"openshare","dataString"=>$dataString))););结果没有打开支付宝,生成的URL格式有些不同(在支付宝sdk中可以成功调用),不清楚什么问题,能否指点一二。

因为我的QQappid转成16进制时没够8位,这个第三方不会自动去补位,导致我分享qq平台时,只是打开QQ而已,并没有对应的分享操作。然后我直接在这个方法做了修改,最后分享成功。希望能给后来者一些帮助,感谢作者分享。另外有个问题,微信分享的为什么返回自己APP的按钮点了没反应,回不到自己的APP,还有QQ登录再请求api获取不到用户头像url,请求借口如下:https://graph.qq.com/user/get_user_info?access_token=xx& openid=xxx&appid=xxx&format=json。 +(void)connectQQWithAppId:(NSString *)appId{ NSMutableString *appIdx = [NSMutableString stringWithFormat:@"%02llx", [appId longLongValue]]; while (appIdx.length < 8) { [appIdx insertString:@"0" atIndex:0]; } [appIdx insertString:@"QQ" atIndex:0]; appIdx = appIdx.uppercaseString; [self set:schema Keys:@{@"appid":appId,@"callback_name":appIdx}]; }

userName 需要开放出来,外部传参,而不是就注册的时候,就注册一个。 `+(void)connectWeixinWithAppId:(NSString *)appId miniAppId:(NSString *)miniAppId{ [self set:schema Keys:@{@"appid":appId, **@"miniappid":miniAppId}**]; }` 因为一个app分享出来对应到多个小程序,并不是只能一个,所以这种注册一次写死的方法,需要优化,我提交过一个Pull request,可以做下合并优化,谢谢,为了更好的openShare

微信分享-支持小程序