Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Facebook Share Dialog's content not shown in home page

I using "ShareDialog" for sharing a link from my app to Facebook wall. When i post a link, it shows the content only in user's timeline and not in home page. What i'm doing wrong?

I'm doing something like that:

// This is how i invokes the shareDialog
FacebookDialog shareDialog = createShareDialogBuilderForLink().build();

private FacebookDialog.ShareDialogBuilder createShareDialogBuilderForLink() {
    return new FacebookDialog.ShareDialogBuilder(this)
    .setPicture("picture url")
    .setName("name")
    .setLink("link url");
}

User's timeline:

enter image description here

Home page:

enter image description here

In home page only shows the name of the app which take it from the link i setted(app in google play) without showing the content of the link(descriptiion, name, Caption...).

like image 330
Balflear Avatar asked Apr 09 '14 11:04

Balflear


People also ask

What is Facebook dialog?

The Share dialog gives people the ability to publish an individual story to their timeline, a friend's timeline, a group, or in a private message on Messenger. The Share dialog does not require Facebook Login or any extended permissions, so it is the easiest way to enable sharing on the web.


1 Answers

Its because the user chose to not share the link publicly, do you see the little lock icon alongside the time the link was shared? It shows that link is not shared publicly, if its public the icon changes to globe icon.

What to do now?

1) I don't know whether Facebook API allows to set permissions on the post but you can try, see API documentation.

2) Many users by default set the share permission to private, see whether your account has it private by default by going in Facebook settings.

like image 144
rusted brain Avatar answered Oct 03 '22 05:10

rusted brain