javascript - Facebook JS SDK - How to post custom story to timeline -
i trying post custom story user's timeline. when try post story, not appear in user's timeline, appears in user's activity log (under user's profile).
in order story show in timeline has select in activity log , choose "show on timeline". not want. there way can make show directly in timeline?
i using following code:
var parent = this; fb.api( 'me/' + parent.facebook_app_namespace + ':score', 'post', { newscore: "http://mydomain.com/open-graph/newscore?app_id=" + parent.facebook_app_id + "&game_id=" + parent.my_app_id + "&score=" + params.score + "&access_token=" + parent.facebook_app_access_token }, function(response) { console.log(response); } );
the code returns object id, indicates story has been posted successfully.
thanks.
most due fact app in development mode- in case stories not published on wall visible in activity log.
you can switch app live mode in app settings-
Comments
Post a Comment