Yes, the Facebook JavaScript API takes a callback that indicates if the post was successful:
FB.api( '/{page-id}/feed', 'POST', {
message: 'Check out this cool link!',
link: 'http://coollink.com'
},
function (response) {
if (response && !response.error) {
// post successful
} else {
// post unsuccessful
}
}
);
Documentation here: https://developers.facebook.com/docs/graph-api/reference/page/feed/