I created a music player. In the app, there is a feature where user can share what songs they are listening to. I STRICTLY followed this official guide from facebook's developer's page. Sharing is working fine. But none of my friends can see the shared posts. I have uploaded a screenshot showing the posts i shared on facebook. I have tried changing the privacy setting of the post from "friends" to "public"/others. But nothing seems to work.
Am i missing something?
Here is the code snippet:
fbIcon.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ListItem item = PlayerService.listItems.get(PlayerService.currentSongIndex);
if (ShareDialog.canShow(ShareLinkContent.class)) {
String desc = "I'm listening to: " + item.getTitle() + ", " + item.getAlbum() + " by " + item.getArtist();
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentTitle("G-Music Station")
.setContentDescription(desc)
.setContentUrl(Uri.parse("https://play.google.com"))
.setImageUrl(Uri.parse("http://radiogbd.com//images/logo.png"))
.build();
ShareDialog shareDialog = new ShareDialog(PlayerActivity.this);
shareDialog.show(linkContent);
}
}
});
You need to disable the sandbox mode in your app settings in order for your friends to see the post(s).