Question

I have set up Actions for my facebook open graph app and can successfully publish actions to my timeline. This is great.

However I was expecting to be able to also publish these actions to my newsfeed in the same way I can publish a story to the feed. I am using the Javascript API.

I publish the action to the timeline using -

FB.api('/me/MY_APP_NAMESPACE:MY_ACTION?MY_OBJECT=URL', 'post', function(response) {...});

I publish a story to the feed using -

FB.ui({method:feed, name:SOME_STRING, link:SOME_URL, picture:SOME_IMAGE_URL, caption:SOME_STRING, description:SOME_STRING}, function(response) {...});

I would like to be able to publish the action to both the timeline and the news feed. When a user clicks on the action in the timeline it opens that object page and I want the same behavior from the news feed.

Was it helpful?

Solution

When you publish an Open Graph action, the action is automatically eligible to appear in the user's Timeline, AND the Ticker and News Feeds of their friends.

You do not need to post anything more to the API, you certainly do not need to make a separate Feed call.

OTHER TIPS

This question is over a year old, and who knows what's changed since then. But, I was having the same problem this week. Stuff always showed up in the Timeline, but never the News Feed.

I solved it by passing fb:explicitly_shared=true

https://developers.facebook.com/docs/opengraph/guides/explicit-sharing/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top