[android-developers] Facebook clipping my share text
Hi there,
I am adding social sharing of highscores to my app. It works fine on
Google+, but when sharing in facebook the text is clipped, showing only
the link to the application and the text it gathers from google play,
and also an image icon that has nothing to see with my app but it is
also gathered by Facebook from google play due the application link.
This is the text I send as defined on strings.xml resouce, for l10n:
<string name="game_sharing_score" formatted="false">
My new High Score on Gamename: %d\n
Sure you cannot beat me! :-P\n\n
If you have an Android phone or tablet, you can download
Gamename from here:\n
https://play.google.com/store/apps/details?id=gamepackage
</string>
(I have changed real game name and package by Gamename and gampackage in
this message. Of course in the app the values are the actual ones).
The code for sharing is the following one:
String shareScoreMsg =
String.format(context.getString(R.string.game_sharing_score), highestScore);
Intent shareScoreInt = new Intent(Intent.ACTION_SEND);
shareScoreInt.setType("text/plain");
shareScoreInt.putExtra(Intent.EXTRA_TEXT, shareScoreMsg);
game.startActivity(Intent.createChooser(shareScoreInt,
context.getString(R.string.game_sharing_score_title)));
"game" is an Activity descendant instance, and "context" is the
application context, and the resource string "game_sharing_score_title"
is just a title for the activity that says "Share your score".
Anyway everything works fine with the code, the problem seems to be with
facebook itself, that although it receives the whole text, it just
shares the last link to Google Play.
Does someone knows any workaround for this issue?
Thanks a lot in advance,
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home