共享使用意图的Facebook在Android中 [英] share using intent to facebook in android

查看:100
本文介绍了共享使用意图的Facebook在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的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跟踪系统,这是通过设计和臭虫已经关闭。 <一href="https://developers.facebook.com/bugs/332619626816423/">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..

这篇关于共享使用意图的Facebook在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆