0

我正在尝试通过我的应用程序将来自 Google Play 商店的应用程序链接分享到我的 Facebook 墙。但是当链接发布在我的墙上时,它显示了一个错误的图标。

当我单击链接时,它会将我重定向到正确的位置。

String message = "play.google.com/store/apps/details?id="+ mItem.getPackageName();
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("text/plain");
share.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(share, "Share "+mItem.getAppName()+" with your friends"));
4

2 回答 2

2

我找到了答案:

代替

字符串消息 = "play.google.com/store/apps/details?id="+ mItem.getPackageName();

我应该使用以下

字符串味精 = " https://market.android.com/search?q=pname :"+ mItem.getPackageName();

于 2013-06-26T06:14:53.523 回答
1

使用此工具检查您在 Facebook 上发布的链接: https ://developers.facebook.com/tools/debug

Facebook通常在header中搜索图片标签,但不时更改

于 2013-06-17T11:28:23.797 回答