I’ve made an app with open graph.
Once I publish an action, it doesn’t publish on my wall.
It publishes on the activity feed instead.
Here is my code for publishing
function postCook()
{
FB.api(
'/me/[my app namespace]:cook?'
,
'post',
{ recipe: 'http://www.xxx.com/Sample.html'
,access_token : 'MY TOKEN'},
function(response) {
if (!response || response.error) {
alert( response.error.message );
} else {
alert('Cook was successful! Action ID: ' + response.id);
}
});
}
I also tried to follow the instruction here Tutorial
According to this tutorial, I’ve seen that Open Graph can publish to News Feed.
But I cannot make my app publish to News Feed.
Do I have to set any parameters to force it to publish on News feed (on my wall)?
Which permission I have to request?
publish_actions or publish_stream?
Thanks,
You cannot force Open Graph actions to be published to the news feed. Facebook keep tight control over the feed and by default, your OG actions always get published to the activity feed. And sometime only do they reach the News Feed (of your friends – never seen mine in my own feed).
So that’s it, you cannot force it. Although, don’t worry too much about this, OG actions actually get published often enough to allow “virality” of your app, and good reach of new user. It’s definitly better than a
shareaction, even if this one get published to the News Feed instantly.