How do I use FB.Connect.streamPublish in an iframe facebook app?
- by Gary
I'm making a simple iframe-based facebook app. I have the following code to size my iframe:
FB_RequireFeatures(["Connect"], function(){
FB.XdComm.Server.init('/xd_receiver.htm');
FB.CanvasClient.startTimerToSizeToContent();
FB.CanvasClient.syncUrl();
});
I want to add a link that will display a popup which will allow the user to post an app-defined image/link to the user's wall. To get things working initially, I tried just using the following code on a click event:
FB.Connect.streamPublish('');
However, nothing happens. I've tried adding:
FB.init(<?=API_KEY?>, '/xd_receiver.htm');
both inside the FB_RequireFeatures function, before it, after it... no luck. Nothing happens. No errors are thrown. Nothing. Any ideas?