I am making a simple iframe based framework. I have the following code for the size of 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 in which a pop-up window will be displayed that will allow the user to publish the image / link attached to the application on the user's wall. To get started, I tried using the following code on the click event:
FB.Connect.streamPublish('');
However, nothing happens. I tried to add:
FB.init(<?=API_KEY?>, '/xd_receiver.htm');
inside the function FB_RequireFeatures , before that, after that ... there is no luck. Nothing happened. Errors do not occur. Nothing. Any ideas?
source
share