Facebook: Your link could not be provided

I am adding the ability to share ratings from my application using the Android intent:

Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("text/plain"); shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Score"); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "I scored "+score+" on "+difficultyString+" difficulty."); context.startActivity(Intent.createChooser(shareIntent, "Share your score")); 

When I select Facebook from my favorites, it goes to m.facebook.com and says: "Your link cannot be provided." What's going on here?

+7
android facebook
source share
5 answers

This is a common problem found in all Android apps when trying to share them with facebook. Facebook blocks other apps from sharing with its app. I'm not sure why, but many companies are trying to get around this. It is currently "incompatible." Unfortunately.

+2
source share

I found out that you can use this URL to share something with facebook:

http://www.facebook.com/sharer.php?s=100&p[title]=YOUR_TITLE_HERE&p[summary]=YOUR_SUMMARY_HERE&p[url]=YOUR_URL_TO_POINT_TO_WHEN_THIS_IS_BEEING_CLICKED

This does not require the user to set up Facebook.

+2
source share

Dude, you can try the following:

 Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_TEXT, the_pure_link); startActivity(Intent.createChooser(intent, "Share with")); 

If there are images inside the_pure_link, or the_pure_link contains:

 <link rel="image_src" type="image/jpeg" href="image_address" /> 

Share on facebook will show the link, image and your comment together. All of these solutions are on stackoverflow.com. Check it out here:

Share text on Facebook from the Android app via ACTION_SEND

Share images from android to facebook

+2
source share

My universal idea in such situations is to sniff the traffic between Android and the server and see what exactly was sent to the server when this code was run. You can compare it with something that works, and this will give you some ideas.

0
source share

Your intent code looks great - did you try to install another FB application?

0
source share

All Articles