android - Facebook JavaScript SDK loading issue -
i copy/paste code (with minor adjustments) facebook apis site , not loading. code :
<div id="fb-root"></div> <script> window.fbasyncinit = function() { // init fb js sdk fb.init({ appid : 'xxx', // app id app dashboard channelurl : 'channel.html', // channel file x-domain comms status : true, // check facebook login status xfbml : true // social plugins on page }); // additional initialization code such adding event listeners goes here alert('inited'); }; // load sdk asynchronously (function(d, s, id){ var js, fjs = d.getelementsbytagname(s)[0]; if (d.getelementbyid(id)) {return;} js = d.createelement(s); js.id = id; js.src = "//connect.facebook.net/en_us/all.js"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script>
i trying use on android phonegap app, not working on browser too. why happening?
Comments
Post a Comment