【发布时间】:2015-12-28 19:45:55
【问题描述】:
我想在没有本机应用程序的情况下将图像和文本分享到 twitter。我已经安装了 twitter 推荐的 Fabric 插件并使用此代码进行分享:
TweetComposer.Builder builder = new TweetComposer.Builder(this)
.text("just setting up my Fabric.")
.image(myImageUri);
builder.show();
In the event that the Twitter app is not installed, TweetComposer will create an intent to interact with the Twitter.com in a browser. The browser ignores a specified image. 如果没有安装原生应用,是否可以发送图像?
【问题讨论】:
-
你考虑过使用 Twitter4j 吗? twitter4j.org/en/code-examples.html#oauth