How to use facebook publish stream method in a '.js' file
问题 I am using bellow code which is in a '.php' file, to publish stream. <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init( { appId : 'MY_APP_ID', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); var publish = { method: 'stream.publish', message: '', picture : 'http://www.associationregion.org/images/stories/slides/Upload.png', link : 'http://apps.facebook.com/puzzlegts/'