[英]Android share to facebook twitter g+ and others
New to android here but not to stackoverflow, i know this was asked before but hear me out first: So regular Share through chooser: android的新手,但不是stackoverflow的新手,我知道这是之前被问过的,但首先请听我说:因此,通过选择器定期共享:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, message);
sendIntent.setType("text/plain");
No longer works! 不再有效! , facebook doesn't allow pre-filled text to be sent(so i understood). ,facebook不允许发送预填充文本(因此我了解)。
BUT I've seen apps do it anyways, by first presenting a pre-filled dialog they created with the text and then showing a custom chooser for sharing. 但是我已经看到应用程序无论如何都可以做到这一点,首先显示一个他们用文本创建的预填充对话框,然后显示一个自定义选择器以进行共享。
I have no idea how they do that, i can't find any answers in the forums for pre-filled text share to facebook. 我不知道他们是怎么做到的,我无法在论坛中找到任何答案以将预填充的文本共享到Facebook。
Worst part is, i want to share text with an image, like in this photo here . 最糟糕的是,我想与图像共享文本,就像这里的这张照片一样。
Where can i get a good sample project / Tutorial for: 1. simple facebook share. 在哪里可以获得良好的示例项目/教程:1.简单的Facebook分享。
twitter and google+ sharing. Twitter和Google+共享。
custom chooser. 自定义选择器。
Also, would like to hear your comments and regards on best practices with social media sharing AND using a chooser. 另外,想听听您对社交媒体共享和使用选择器的最佳实践的意见和看法。 Cause i also want the be able to share to apps like WhatsApp and other of that sorts. 因为我也希望能够与WhatsApp之类的应用程序共享。
With facebook's new SDK you can no longer use ACTION_SEND to share text information. 使用Facebook的新SDK,您将无法再使用ACTION_SEND共享文本信息。 You can post on behalf of the user but not pre-fill the text for a status update, at least i did not find a way to do that. 您可以代表用户发布信息,但不能预先填写文本以进行状态更新,至少我没有找到实现此目的的方法。
You must also have your app actions checked and accepted by facebooks policy. 您还必须通过Facebook政策检查并接受您的应用操作。
The answer: Stop working with facebook untill they remove their app from the ACTION_SEND in the android chooser. 答案:停止使用Facebook,直到他们从android选择器中的ACTION_SEND中删除其应用为止。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.