views:

160

answers:

2

Hey everybody, 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?

Greets, Goddchen

A: 

same issue here

A: 

It appears that the Facebook app handles this intent incorrectly. The most reliable way seems to be to use the Facebook API for Android.

The SDK is at this link: http://github.com/facebook/facebook-android-sdk

Under 'usage', there is this:

Display a Facebook dialog.

The SDK supports several WebView html dialogs for user interactions, such as creating a wall post. This is intended to provided quick Facebook functionality without having to implement a native Android UI and pass data to facebook directly though the APIs.

This seems like the best way to do it -- display a dialog that will post to the wall. The only issue is that they may have to log in first

HXCaine
Well that's not exactly what i was asking for. But anyway thanks for the hint. I Would need to add a seperate menu item for facebook share to make this work...
Goddchen
Yeah, I understood what you meant and it's a bitch but I've had the same problem with the ACTION_SEND intent in my application and Facebook haven't fixed their app, so this seems to be the best alternative
HXCaine
I've just done some more searching and found that there are people all over the internet with this problem and Facebook isn't helping at all. http://forum.developers.facebook.net/viewtopic.php?pid=255227
HXCaine