I think this is what you're looking for.
Take the permissions upfront. And then publish to stream using Graph API rather than Javascript SDK. (this will not involve the user at all while publishing, and will happen on server side in your php code)
cdpnet
2010-06-30 19:19:48