tags:

views:

15

answers:

2

I am planning an app that will post to a users FB wall. When posting via the GraphAPI is an object id returned for the new post? We want to use the post id later to retrieve data about the post.

A: 

If you look at FB.ui() example for stream.publish, post_id is returned with the response.

serg
thanks for the answer, but really need to publish via a server-side call
Donald
e.g. a php call
Donald
A: 

Looking at this example from their FB.api docs, it certainly seems possible.

var body = 'Reading Connect JS documentation';
FB.api('/me/feed', 'post', { body: body }, function(response) {
    if (!response || response.error) {
        alert('Error occured');
    } else {
        alert('Post ID: ' + response);
    }
});
Anurag

related questions