I want to programmatically publish messages to my site user’s facebook page on their behalf, whenever certain events are triggered from my site. I’ll have a cron that executes stream.publish when needed.
I am looking at stream.publish to accomplish this, which requires extended permission from the facebook user. Since the user will not be engaged in the publishing, how would I go about getting publish_stream extended permission from my user base? Can they do it while they are signing up on my site or if they provide me their username & password, can I do it for them?
The only way to do this is via a permissions dialog. If you are using facebook connect check out FB.Connect.showPermissionsDialog otherwise you can easily include FB:prompt-permission in your fbml.
If you are using an iframe/facebook connect you can probably invoke FB.Connect.showPermissionsDialog without any user action (so the will see the dialog on page load). In the FBML case you will need to direct your user to click on the link that brings up the window.