How To Put Your fb Cover Photo To Your Deface Page via Javascript!
Hello Bro! if you are willing to show your facebook Cover photo to your deface page. It's scary to show off your deface. Use wisely at your own risk.
==============here is code================
<!DOCTYPE html>
<html>
<head>
<script>
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var json = JSON.parse(xmlhttp.responseText );
document.getElementById("myDiv").innerHTML="<img src='"+json.cover['source']+"' />";
}
}
xmlhttp.open("GET","http://graph.facebook.com/your_fb_graph_id_here?fields=cover",true);
xmlhttp.send();
}
window.onload=loadXMLDoc;
</script>
</head>
<body>
<div id="myDiv"><h2>here,ur fb cover foto will come out!</h2></div>
</body>
</html>
0 comments:
Never Forget To Say Thanks :D