javascript - Static HTML Iframe not working for non admin users -


i using static html iframe in facebook writing basic code tab. after testing facebook login, when try accessing tab test user's id, doesn't work.

i changed role of 1 of test user manager , surprise popup came in saying "static html: iframe tabs receive following info: email address , photos" popup did not come when role not manager/admin.

please guide on how resolve of popup not coming non manager/admin users. understand after necessary permissions, tab work properly.

please note: using static

the javascript code follows:

// load sdk asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getelementsbytagname('script')[0]; if (d.getelementbyid(id)) {return;} js = d.createelement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_us/all.js"; ref.parentnode.insertbefore(js, ref); }(document));   window.fbasyncinit = function() { fb.init({ appid      : '190322544333196', status     : true, cookie     : true,  xfbml      : true   });  fb.event.subscribe('auth.authresponsechange', function(response)  { if (response.status === 'connected')  { document.getelementbyid("message").innerhtml +=  "<br>connected facebook"; //success }     else if (response.status === 'not_authorized')  { document.getelementbyid("message").innerhtml +=  "<br>failed connect"; //failed } else  { document.getelementbyid("message").innerhtml +=  "<br>logged out"; //unknown error } });   };  function login() {  fb.login(function(response) { if (response.authresponse)  { document.getelementbyid("message").innerhtml +=  "<br>initiated"; getuserinfo(); } else  { console.log('user cancelled login or did not authorize'); } },{scope: 'email,user_photos'}); }  function getuserinfo() { fb.api('/me', function(response) { ...other basic code access name, userid etc... }   


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -