Skip to main content
Participant
February 2, 2012
Answered

Post Facebook social graph to timeline

  • February 2, 2012
  • 1 reply
  • 1802 views

Has anyone used the facebook-actionscript-api to make social graph updates to users Facebook timeline? I have got likes and status updates going from my AIR app though struggling with the open graph.

I have created Facebook app and activated open graph and added some actions/objects/aggregators and previews (eg action:watch, object:video).

I have connected via my AIR app, passed the "publish_actions" as a permission and called facebook graph with the url "/me/video.watches" and a POST param of movie:""http://www.imdb.com/title/tt0117500/".

I get Facebook API error: "(#200) Requires extended permission: publish_actions".

I could not find any posts out there for Open graph/AS3 dev. Anyone having similar issues or can shed some light?

Thanks

This topic has been closed for replies.
Correct answer FB46AIR3

FYI I have got this working now.

In my Facebook apps open graph section I added "publish_actions" to the Authenticated Referrals, see this article: http://onlytipsandtricks.com/facebook/facebook-application-development-with-open-graph/

So user is already logged in and authenticated and token generated, then the AS3 post_to_timeline_btn click handler code is:

var params:Object = new Object()

params.movie = "http://www.imdb.com/title/tt0117500/";

params.action_token = xxxxxxxx;

FacebookMobile.api("/me/video.watches",onTimelineUpdateStatus,params,"POST");

Note the movie url has the correct paramaters in its HTML, use the get code from the action in your Facebook app or see this post: http://onlytipsandtricks.com/facebook/how-to-publish-actions-on-timeline/

1 reply

FB46AIR3AuthorCorrect answer
Participant
February 2, 2012

FYI I have got this working now.

In my Facebook apps open graph section I added "publish_actions" to the Authenticated Referrals, see this article: http://onlytipsandtricks.com/facebook/facebook-application-development-with-open-graph/

So user is already logged in and authenticated and token generated, then the AS3 post_to_timeline_btn click handler code is:

var params:Object = new Object()

params.movie = "http://www.imdb.com/title/tt0117500/";

params.action_token = xxxxxxxx;

FacebookMobile.api("/me/video.watches",onTimelineUpdateStatus,params,"POST");

Note the movie url has the correct paramaters in its HTML, use the get code from the action in your Facebook app or see this post: http://onlytipsandtricks.com/facebook/how-to-publish-actions-on-timeline/