I write down a code in javascript for posting message on Face-Book. I posted it successfully but it's always showing only me
privacy statement.
I really want to post this message publicly.
I try to set privacy = { 'value': 'EVERYONE' };
. still message posting private(only me).
My code is-
var privacy = { 'value': 'EVERYONE' };
var txt = 'my post to test feed post using api';
FB.api('me/feed', 'post', { message: txt, privacy: privacy }, function (response) {
if (!response || response.error) {
alert(JSON.stringify(response.error));
} else {
alert('Post ID: ' + response.id);
}
});
How can i post it publicly ?
thanks a bunch for your valuable help.