当我与推荐人共享链接时,Facebook SDK(v4.8)会将其从链接中删除。
例如,我有以下链接:
https://play.google.com/store/apps/details?id=com.mypackage.myapp&referrer=utm_source%3Dfacebook
墙上的实际帖子包含没有引荐来源的链接:
http://play.google.com/store/apps/details?id=com.mypackage.myapp
代码:
if (ShareDialog.canShow(ShareLinkContent.class)) {
ShareLinkContent content = new ShareLinkContent.Builder()
.setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=com.mypackage.myapp&referrer=utm_source%3Dfacebook"))
.build();
shareDialog.show(content);
}