所以我使用的是Android Studio 3.0.1,就像这样:
implementation 'com.facebook.android:facebook-core:4.27.0'
implementation 'com.facebook.android:facebook-login:4.27.0'
implementation 'com.facebook.android:facebook-share:4.27.0'
我关注了https://developers.facebook.com/docs/sharing/android
中的所有内容但在使用Facebook ShareLinkContent时:
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=com.bei5000.debm&hl=in"))
.setQuote(MyApplication.getContext().getString(R.string.game_yes_no_fb_quote, String.valueOf(playerScore * 1000)))
.build();
shareDialog.show(linkContent);
我的分享内容不一致。关于Redmi Xiaomi 2 Kitkat 4.4.4 API 19的共享内容是:
但是在AVD Emulator Nexus 5X Nougat 7.0 API 24上显示的共享内容是正常的(没有剪切)
为什么会这样?如有任何帮助,请提前致谢!
更新:根据@CBroe评论,我检查了实际的分享结果,两者都没问题。但我仍然认为这是一个错误,应该向Facebook报告。