简体   繁体   English

Android分享到Facebook Twitter G +等

[英]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分享。

  1. twitter and google+ sharing. Twitter和Google+共享。

  2. 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.

相关问题 Android:通过短信,G +,Twitter,Facebook可靠地分享资产中的图像? - Android: Reliably share an image from assets via messaging, G+, twitter, facebook? Android Share to G +缺少位置字段 - Android Share to G+ is missing location field Android Webview中的G + - G+ in Android webview 在离线时在Android应用程序中加载G +和Facebook的个人资料图片 - loading profile image of G+ and Facebook in android app while offline 在android中分享到Facebook(如推特) - Share to Facebook in android (like twitter) Android facebook / twitter分享按钮 - Android facebook/twitter share button 社交网络FB,Twitter,G +等...在所有3个平台(iOS,Android和Blackberry) - social network FB,Twitter, G+ etc.. in all 3 platforms (iOS , Android and Blackberry) 如何在不使用Intent的情况下从Android分享Google Plus(G +)中的文字和图像? - How to share text & image in Google Plus (G+) from android without using Intent? 如何使用Facebook好友制作Android多人游戏? (Google Play游戏服务仅使用G +) - How to make Android Multiplayer Games using Facebook friends? (Google Play Game Services uses G+ only) Android应用程式介面,例如g + - Android app interface like g+
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM