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
2010-07-25 02:14:54
thanks for the answer, but really need to publish via a server-side call
Donald
2010-07-25 02:22:07
e.g. a php call
Donald
2010-07-25 02:23:56
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
2010-07-25 02:21:47