javascriptfacebook-graph-apiiframewidgetlogout

Load facebook logout URL using an Iframe


How can I load my facebook logout URL without redirecting to the site using an Iframe

I have a code but does not go according to plan,

my.js

var url = https://www.facebook.com/logout.php?next=mysite.com&access_token=mytoken

var disp = "";
disp += "<iframe src =" + datafile + "></iframe>";

$.(".setContent").append(disp);

It will show the iframe, but when I load the url on a page, still my account hasn't logged out. I'm loading this on my windows gadget.


Solution

  • Facebook would not allow that, for security reasons.