Closed xoco70 closed 9 years ago
+1
The similar way I wanted to post on friends' wall.. it is not possible?
@xoco70 @nikacot @Kantesh I am testing it. Currently i succeeded to publish on page which I admin of. Now I will try to publish on page where I am not an admin, and then will try to publish of friend's wall. Will update you and the library in the next 24 hours :)
@sromku Thanks alot for you kind reply..:)
+1
try {
final Bundle params = new Bundle();
params.putString("name", "Facebook SDK for Android");//title
params.putString("caption", "Build great social apps and get more installs.");//caption
params.putString("description",
"The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps.");
params.putString("to", friendId);
final WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this, Session.getActiveSession(), params)).setOnCompleteListener(
new OnCompleteListener() {
@Override
public void onComplete(final Bundle values, final FacebookException error) {
ToastUtils.showToastOnUIThread(FacebookLoginActivity.this, R.string.facebook_stub_post_friend_title);
finish();
}
}).build();
feedDialog.show();
}
catch (final Exception e) {
e.printStackTrace();
}
Hi, Have you finished the publish story part? I need to publish story with picture on friend`s wall.
Eugene
@Kantesh @xoco70 @nikacot @Anth06ny The option of publishing on facebook page is already exists. I don't remember when I added this, but I forgot to update this ticket. Sorry guys :disappointed:
To make it work you need to use this method:
mSimpleFacebook.publish(String entityId, Feed feed, OnPublishListener onPublishListener);
See the documentation of this method to see what is possible. In general, by using this method you can post on walls of:
Page
Group
Event
@Gavnuchok , publishing on friend's wall isn't possible. This is facebook restriction from the last year.
Btw, I am working on new examples and updated code based on latest facebook changes and SDK 3.14. This is the branch I work on (v2.0), right now. It is already has full support of SDK 3.14 :smile:, but I still didn't finish examples and testing. Once I finish, I will merge this branch to the main (master).
Hello,
I need to publish a message in a facebook page that the user defines in his configuration. Is it possible with your library???
PS : I'm using your lib for 2 projects:
Tx !