【发布时间】:2012-07-28 22:41:03
【问题描述】:
我正在使用下一个代码来支持我的应用程序中的共享:
//create the send intent
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
//set the type
shareIntent.setType("text/plain");
//add a subject
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"subject");
String msg = https://play.google.com/store/apps/detailsid=com.rovio.amazingalex.premium
//add the message
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, msg);
//start the chooser for sharing
startActivity(Intent.createChooser(shareIntent, "Sharing..."));
即使我这边没有任何额外的图像,
facebook 采用随机图像,这不是我的应用程序的一部分,但与它有某种关联。
例如,当尝试分享“Amazing Alex”时,这是附上的图片:
如何更改此图像?
【问题讨论】:
-
如果我没记错的话,Facebook 会尝试从引用的 URI 中提取缩略图。也许该图像是用于页面左侧的应用程序,例如“查看过此内容的用户也查看过”列?
-
是的,图片是页面左侧的应用程序,例如“查看过此内容的用户也查看过”列,如何将其更改为我的图片?
-
您的答案可以在这里找到:stackoverflow.com/questions/1138460/…
-
这篇文章是关于分享我自己的页面。但是当尝试从 google-play 分享链接时,我只有链接,我无法更改 google play 页面中的任何细节...
-
David:是的,我还发现在 Facebook 上共享指向 Google Play 应用详细信息页面的链接只会产生链接,没有图像,这与通过 Facebook 共享的其他链接不同。我想知道是不是因为 Google Play 应用程序与 Facebook 应用程序竞争?
标签: android facebook android-intent share