javascript - FB.login popup no longer working on Safari mac? -
anyone else no longer getting popups in safari?
here's sample code not work in safari. launched click on link popup blocker shouldn't block it. ideas why does?
online illustration here:
http://users.telenet.be/prullen/fbtest.html
note not run through expected behavior since it's on domain , has wrong app id. thing matters illustration showing of popup.
<script type="text/javascript"> var fbloaded = false; var dorelogin = true; function createaccesstoken(){ if (!fbloaded) { fb.init({ appid : 'xxx', // app id status : true, // check login status cookie : true, // enable cookies allow server access session xfbml : true // parse xfbml }); } fbloaded = true; fb.getloginstatus(function(response) { if (response.status === 'connected') { getextendedaccesstoken(response.authresponse); } else { fb.login(function(response) { if (response.status == 'connected') { if (response.authresponse && response.authresponse.accesstoken) { getextendedaccesstoken(response.authresponse); } else { alert('you cancelled login or did not authorize.'); } } else { alert('to utilize have create access token.'); } }, {scope: 'read_stream'}); } }, true); } function getextendedaccesstoken() { } </script> <p style="text-align:center;"><a href="#" onclick="createaccesstoken();return false;" class="connect">connect facebook</a></p>
can check settings regarding blocking pop-up window? issue: javascript: facebook login not open in safari/ iphone same have, guess.
javascript facebook facebook-graph-api safari
No comments:
Post a Comment