开发者

Problem with the way Facebook handles share function on Android

开发者 https://www.devze.com 2023-04-03 09:09 出处:网络
My app has the share intent which displays a list of Apps which can be used to share. I am doing it like this.

My app has the share intent which displays a list of Apps which can be used to share. I am doing it like this.

final Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, "Cool app");
intent.putExtra(Intent.EXTRA_TEXT, "Check out www.myappurl.com");
startActivity(Intent.createChooser(intent, "Share"));

This works perfectly for every other app.

However if the user chooses facebook, then Facebook only takes the URL and pulls in con开发者_开发技巧tent from the URL it does not display the "Check out" part at all, this makes it seem like I am spamming peoples walls instead of actually letting them share what they want to share.

Anyone have any solutions?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号