GithubHelp home page GithubHelp logo

Comments (5)

Duzj avatar Duzj commented on July 19, 2024

对,我也遇到这个问题,我用demo中的url 每次都成功,换成自己的url 放在demo中也会出现这种情况,我感觉是不是最后拼接的地址有什么问题?

from openshare.

100apps avatar 100apps commented on July 19, 2024

贴一下代码吧
------------------ Original ------------------
From: "Duzj"[email protected]
Date: Thu, Nov 5, 2015 09:15 AM
To: "100apps/openshare"[email protected];
Subject: Re: [openshare] 分享到QQ空间偶发性失败 (#34)

对,我也遇到这个问题,我用demo中的url 每次都成功,换成自己的url 放在demo中也会出现这种情况,我感觉是不是最后拼接的地址有什么问题?


Reply to this email directly or view it on GitHub.

from openshare.

Duzj avatar Duzj commented on July 19, 2024

我直接用demo中的代码,只是最后一句换了个url,麻烦看下,特别是 qq空间
-(void)qqViewHandler:(UIButton_)btn{
UISegmentedControl *seg=(UISegmentedControl_)[panel viewWithTag:2002];
OSMessage *msg=[[OSMessage alloc] init];
msg.title=@"Hello OpenShare (msg.title)";
if (btn.tag>=2) {
msg.image=testImage;
msg.thumbnail=testThumbImage;
msg.desc=@"这里写的是msg.description";
}
if(btn.tag==3){
msg.link=@"http://sports.qq.com/a/20120510/000650.htm";
}else if(btn.tag==4){
msg.link=@"http://wfmusic.3g.qq.com/s?g_f=0&fr=&aid=mu_detail&id=2511915";
msg.multimediaType=OSMultimediaTypeAudio;
}else if(btn.tag==5){
msg.link=@"http://v.youku.com/v_show/id_XOTU2MzA0NzY4.html";
msg.multimediaType=OSMultimediaTypeVideo;
}

msg.link = @"http://app.systoon.com/?uuid=16ceb0b3-4bc8-43f8-a637-f89fd4a31865&fw=null";

from openshare.

Navimark avatar Navimark commented on July 19, 2024

分享失败时的OSMessage对象(保密需要,涂黑了URL,请谅解)
image
PS:在使用原生SDK分享到QQ空间时,抓包并没有发现share/add_share_pic接口的调用

from openshare.

100apps avatar 100apps commented on July 19, 2024

@iosnerd @Duzj

QQ空间分享失败,我认为应该是是QQ空间自己的反垃圾算法导致的,和分享没关系。

我用官方SDKhttp://wiki.open.qq.com/wiki/mobile/SDK%E4%B8%8B%E8%BD%BD做了测试,同样会有分享失败的情况。

分享的url、标题、描述都有可能导致分享失败。

from openshare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.