read


The user need to install the facebook app, the twitter app, and all the applications that support ACTION_SEND (default android intent to send a share).

Then:

<pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;">Intent intent = new Intent(Intent.ACTION_SEND);
intent
.setType("text/plain");
intent
.putExtra(Intent.EXTRA_TEXT, "Wonderful search engine http://www.google.fr/");
startActivity
(Intent.createChooser(intent, "Share with"));
</pre>
This will show a selection list with each of this applications and manage all the sharing, authentication, etc… :D!

Source

There's something wrong with Facebook api and it looks that they dosen't support ACTION_SEND, because the wall post is empty. After searching in the web I found that you need to use the official Facebook API in order to do this (FUCK).
<div>
</div>NOTE:
I found an example to show the same list but catch the Facebook event clic to send it throught the Facebook API and not with ACTION_SEND intent, but I can’t make it work, you can find it here:

Facebook event catch from Intent ACTION_SEND

Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview