The facebook social connected module only allows your application to post to a user timeline when a goal is triggered.
Your site business logic might need you to make ad hoc posts when certain logic is triggered. While we could definitely achieve the results we want by creating goals for each of these actions, this might not adhere with the marketing guidelines.
So here is how we achieved this functionality using the Facebook js API
FacebookDefaultAppId – was the app id (Application Id) set in the sitecore item where we set the facebook app details:
Truth be told, this solution has nothing to do with sitecore, but since we manage the app secret key in sitecore, I am pulling it in from there as opposed to saving it some place else too.