javascript - Is my Facebook canvas app displaying the login dialog? -
is facebook canvas app displaying login dialog automatically upon arrival? want buti have been fighting quite time. have page tab apps feed off of same canvas url , these indeed displaying login dialog app automatically in in pop-up. clear browsers cookies when test. using javascript , facebook sdk build app godaddy website builder; can use php website builder?
my app- https://apps.facebook.com/{my_app}/
code in head section
<meta property="og:type" content="emoticon_app_x:app"> <meta property="fb:app_id" content="{my app id}"> <meta property="og:title" content="emoticon app. x"> <meta property="og:description" content="easy use copy , paste emoticons facebook."> <meta property="og:url" content="https://apps.facebook.com/{my_app}"> <meta property="og:image" content="https://nebula.wsimg.com/b270c0b24507a5a9018ec56c54957962?accesskeyid=e136fd740fab2a181ed3&disposition=0&alloworigin=1"> <meta name="google-translate-customization" content="c7ecf59b1c239b7f-e83518b06897476f-g415c0e55e9c88e54-17"> <meta charset="utf-8"> <script> window.fbasyncinit = function() { fb.init({ appid : '{my app id}', status : true, xfbml : true, version : 'v2.0' }); }; (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/sdk.js"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk')); fb.getloginstatus(function(response) { if (response.status === 'connected') { console.log('logged in.'); } else { fb.login(); } }); </script>
end head section code
code in body section
<script> window.fbasyncinit = function() { fb.init({ appid : '{my app id', status : true, xfbml : true, version : 'v2.0' }); }; (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/sdk.js"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk')); fb.getloginstatus(function(response) { if (response.status === 'connected') { console.log('logged in.'); } else { fb.login(); } }); </script> <body>"<"!-- below include login button social plugin. button uses javascript sdk present graphical login button triggers fb.login() function when clicked. --">" <p><fb:login-button show-faces="false" width="200" max-rows="1"></fb:login-button></p></body> </html>
end body section code
Comments
Post a Comment