I use the JS-API to create a dialog that asks for permission to publish a status message generated by my Application. Below is a screenshot of what I'm saying:

here is the code:
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
message: 'Facebook Dialogs are easy!'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
I use a sample JS code, as stated in the documentation, and it works well if the pop-ups are not blocked in the browser settings. but without displaying the status of the message, there is no application usefulness! Please help them get stuck in the last step. thank!!
source
share