通过ACTION_SEND从Android应用程序在Facebook上分享文本 [英] Share Text on Facebook from Android App via ACTION_SEND

查看:153
本文介绍了通过ACTION_SEND从Android应用程序在Facebook上分享文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,它支持通过其他应用程序发送文本。因此它使用ACTION_SEND意图和EXTRA_TEXT字段。选择者向我展示了可以处理这种意图的所有应用程序。那些是Twitter,EMail,...和Facebook。但是当我选择Facebook时,它会打开浏览器并进入以下页面:



http://m.facebook.com/sharer.php?u=mytext



它显示我的文字和提交按钮。但是当我按提交按钮没有什么发生。该页面再次加载。
我想也许只能通过Facebook应用程序发送URL。有没有人可以通过ACTION_SEND通过Facebook Android应用程序发送文本?

解决方案

EDITED:随着新版的Android官方Facebook应用程序(2011年7月14日) IT WORKS !!!



OLD:如果用户选择Facebook应用程序进行共享,上述示例不起作用,但如果用户选择了Seesmic应用程序发布到Facebook,则这些示例工作正常。我猜Seesmic比Facebook更好地实施了Facebook API!


I have an Android app and it supports sending text via other apps. It therefore uses the ACTION_SEND intent and the EXTRA_TEXT field. The chooser presents me with all apps that can handle such an intent. Those are Twitter, EMail, ... and Facebook. But when I select Facebook it opens the browser and goes to the following page:

http://m.facebook.com/sharer.php?u=mytext

It shows my text and the submit button. But when I press the submit button nothing happends. The page just loads again. I think maybe it is only possible to send URLs via the Facebook App. Could that be?

Did anyone manage to send text via ACTION_SEND through the Facebook Android app?

解决方案

EDITED: with the new release of the official Facebook app for Android (July 14 2011) IT WORKS!!!

OLD: The examples above do not work if the user chooses the Facebook app for sharing, but they do work if the user chooses the Seesmic app to post to Facebook. I guess Seesmic have a better implementation of the Facebook API than Facebook!

这篇关于通过ACTION_SEND从Android应用程序在Facebook上分享文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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