C
C
ChernovDmitry2014-11-07 14:13:53
Android
ChernovDmitry, 2014-11-07 14:13:53

How to post single posts to facebook wall using facebook android sdk?

With the help of android facebook sdk, I will post on my facebook wall with the following code:

if (FacebookDialog.canPresentShareDialog(getApplicationContext(),   FacebookDialog.ShareDialogFeature.SHARE_DIALOG)) {
        FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
                .setLink("http://mylink")
                .setPicture("http://picture_link.jpeg")
                .setDescription("description")
                .build();
        uiHelper.trackPendingDialogCall(shareDialog.present());
    } else {

    }

At the same time, the picture, description and link appear on my wall only once. If I run the same code a second time, write something in the dialog that appears (like my comment), then a new entry is added to the "block" comments as a separate update in the block). I want a new separate entry to be added to the wall every time. Is it that Facebook somehow checks the uniqueness of the content that I post and does not allow me to make 100500 entries on the wall containing the same thing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2014-11-07
@onepavel

I myself encountered a similar problem, the posts from the user's friends on the wall are grouped.
And sometimes they are displayed randomly from the grouping. It does not look like fighting spam, but a variety of feeds.
When trying to release the application, other troubles went with the design of the application content on Facebook itself, decided to cut out the sdk and used the usual system sharing from android.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question