Failed to share content on Facebook via Android app.

I am trying to post some content on a Facebook wall through an Android app. I use the following Intent code for sharing

Intent msg = new Intent(Intent.ACTION_SEND);
msg.setType("text/plain");
msg.putExtra(Intent.EXTRA_TEXT, display_quote.getText().toString() );
startActivity(Intent.createChooser(msg, "Share Quote"));

However, when I select “Facebook” from the options that I get, I get redirected to the URL http://m.facebook.com/sharer.php and I get an error message saying “Your link cannot be shared” .

Is there any other way to post to my Facebook wall via the Android app?

+5
source share
2 answers

Is there any other way to post to my Facebook wall via the Android app?

Yes, and so you should do it: use the Android SDK for Android:

https://github.com/facebook/facebook-android-sdk/

.

+3

Facebook . , - . , msg.putExtra(Intent.EXTRA_TEXT, " http://Iam_a_good_boy.com/no_doubts.asp" ); URL (). , Facebook.

0

All Articles