Gez,
In all honesty, you're going a bit beyond what we've done enough research on. Deep Open Graph integration is definitely something on our radar, but Facebook still has a backlog of Open Graph actions to publish and is really just starting to promote it to all users. While I understand the big picture, we haven't implemented the actions and OG objects yet, which is the first step to getting better integration into JFBConnect for it.
With that said, the page below has a great overview of what you need to do to publish the actions:
developers.facebook.com/docs/opengraph/tutorial/
It sounds like you already have the "Object Page" setup how you want it (the playlist item with a Play button). They also include the following tag on the Object page:
<fb:add-to-timeline></fb:add-to-timeline>
My assumption is that that tag is used by Facebook to verify that this page should be added to the timeline. It's also possible that simply having this line will automatically include the page on the user's timeline. I honestly can't find much info about it.. but keep it in mind..
Once that's setup, the have a great code snippet for what would happen if a user clicked "I cooked this" (for a recipe):
function postCook()
{
FB.api(
'/me/[YOUR_APP_NAMESPACE]:cook?recipe=http://fbwerks.com:8000/zhen/cookie.html',
'post',
function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Cook was successful! Action ID: ' + response.id);
}
});
}
That's the Javascript you'd need to call, obviously replacing bits and pieces for your example as necessary.
There is also a way to add Open Graph events via PHP code on the server side.. still looking into that.
Hope that all helps, but definitely keep us posted on how things go. We're excited to see that JFBConnect is helping a lot with this, but we understand it's not doing everything for you.. that's how a lot of features are added to JFBConnect, by the way. We get some overzealous users to help us understand how they want things to be used, and then we try to make it simple for the masses
Best of luck,
Alex