How do I use FB.Connect.streamPublish in an iframe facebook app?

Posted by Gary on Stack Overflow See other posts from Stack Overflow or by Gary
Published on 2010-01-11T22:27:55Z Indexed on 2010/06/16 1:42 UTC
Read the original article Hit count: 404

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about facebook

Related posts about iframe