Facebook 无法与发送到社交网站的操作共享预键入的文本

Facebook 无法与发送到社交网站的操作共享预键入的文本,facebook,android-intent,text,hyperlink,share,Facebook,Android Intent,Text,Hyperlink,Share,我试图通过任何可以发布我选择的文本的东西来使用ACTION\u SEND intent来共享我的应用程序 我使用这个代码 public void sharebutton(View v){ Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/plain"); sharingIntent.putExtra(android.content.I

我试图通过任何可以发布我选择的文本的东西来使用ACTION\u SEND intent来共享我的应用程序

我使用这个代码

public void sharebutton(View v){
        Intent sharingIntent = new Intent(Intent.ACTION_SEND);
        sharingIntent.setType("text/plain");
        sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml("<p>Try this android application https://link...</p>"));
        startActivity(Intent.createChooser(sharingIntent,"Share by"));
    }
例如,我想选择Facebook,它应该加载Facebook应用程序,在文本字段中应该有:试试这个android应用程序。。。 但是,如果我使用sharingint.setTypetext/html,它或者没有显示通过facebook共享的选项;它确实显示电子邮件、dropbox和blootooth,或者如果我使用sharingint.setTypetext/plain,它不会将文本放在里面


有什么解决办法吗?请随时提供帮助。

您应该集成facebook SDK,并使用它在facebook上共享预键入的文本,但在twitter上,只需使用ACTION\u SEND即可。。。另外,您不允许预先填写任何共享的消息部分,请参阅。消息必须是100%由用户生成的,即由用户自己键入。哦,我可以以不同的方式共享我的应用程序吗?您可以让用户共享链接…但您必须允许他们自己键入消息。并且可以预键入链接?