Facebook apprequests blocked when accessed via http protocol -


this error:

blocked frame origin "https://www.facebook.com" accessing frame origin "http://www.mysite.com". frame requesting access has protocol of "https", frame being accessed has protocol of "http". protocols must match.

on website dialog box show , select people when click send request nothing happens. request never sent. instead receive same error again.

my understanding error code accessing different protocol http vs https

so how force facebook go http? tried http://connect.facebook.net/en_us/all.js didn't help.

<div id='fb-root'></div> <a href='#' onclick='facebookinvitefriends()'>invite friends</a> <script src='http://connect.facebook.net/en_us/all.js'></script>  <script> window.fbasyncinit = function() {     fb.init({appid: "app id", status: true, cookie: true, xfbml: true}); };  function facebookinvitefriends(){     fb.ui({         method  : 'apprequests',         title   : 'title',         message : 'my message'     }, requestcallback); }  function requestcallback(response){     if(response && response.request) {          console.log(response);     } else {      // no requests sent, can want (like...nothing, , stay on page).     } } </script> 

make sure explicitly specify display: 'popup' in fb.ui


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -