共享使用意图的Facebook在Android中意图、Facebook、Android

2023-09-04 11:56:20 作者:玉米糖

我用下面的code共享内容

I use the following code to share content

Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "The status update text");
startActivity(Intent.createChooser(intent, "Dialog title text"));

这是电子邮件,短信确定,任何除的Facebook 。 我谷歌的原因,似乎是Facebook的四月以来的一个错误,但遗憾的是没有一个修复它。

It is OK for email, sms and whatever except Facebook. I google the reason and it seems that it is a bug of facebook since April but unfortunately no one fixes it.

不过,我发现许多应用程序仍然可以使用意图选择器来调用Facebook的成功,如谷歌阅读器。他们怎么能做到这一点?

据我所知,我们可以使用Facebook的API,但他们如何知道用户选择的Facebook在选择器和调用Facebook的API?

As I know, we can use Facebook API, but how they can know user choose facebook in the chooser and invoke the facebook API?

推荐答案

据最新更新的bug跟踪系统,这是通过设计和臭虫已经关闭。 https://developers.facebook.com/bugs/332619626816423/

According to the latest updating to the bug tracker this is 'By Design' and the bug has been closed. https://developers.facebook.com/bugs/332619626816423/

所以看起来这是不会通过的意图是可能的。

So looks like this isn't going to be possible via intents..