我已经开发了一个 javascript 代码来获取任何 Facebook 用户的图片。我创建了一个 javascript 函数来生成它与照片路径连接的随机链接。然后显示照片。示例: https ://fbcdn-sphotos-fa.akamaihd.net/hphotos-ak-ash3/548339_10151989882013306_1841267774_n.jpg
<html> <head>
<title>get Facebook Picture </title>
<script type="text/javascript">
function getRandomLink()
{ var c = "123456789";
var link = '';
for(var i = 0; i <6; i++)
{ link +=c.charAt(Math.floor(Math.random() * c.length));
var d= "1234567890";
var link2 = '';
for(var j = 0; j <9; j++)
{
link2 = link2+d.charAt(Math.floor(Math.random() * d.length));
}
var e = "1234567890";
var link3 = '';
for(var k = 0; k <12; k++)
{
link3 = link3+e.charAt(Math.floor(Math.random() * e.length));
}
}
linker=link+'_'+link2+'_'+link3;
return linker;
}
for(var i = 0; i <1000; i++)
{ var randomLink = getRandomLink();
document.write('processing picture....https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash3/'+randomLink+'_n.jpg<br/><a href="https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash3/'+randomLink+'_n.jpg"><img src="https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash3/'+randomLink+'_n.jpg"></a><br /><br />'); } </script>
</head>
<body>
<h1>my by ALon$0</h1>
</body>
</html>`