Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 动态检索facebook-like-box_Javascript_Facebook_Facebook Graph Api_Facebook Social Plugins - Fatal编程技术网

Javascript 动态检索facebook-like-box

Javascript 动态检索facebook-like-box,javascript,facebook,facebook-graph-api,facebook-social-plugins,Javascript,Facebook,Facebook Graph Api,Facebook Social Plugins,我正在创建一个web应用程序,类似于Facebook的like box代码: 当用户将其粘贴到web应用程序中时,如果他们选择了流,他们应该能够获得包含提要的like box,同时生成like box代码 我使用了以下代码来实现这一点;但问题是我无法检索到喜欢该页面的用户的图片 如何检索他们的个人资料信息 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/D

我正在创建一个web应用程序,类似于Facebook的like box代码:

当用户将其粘贴到web应用程序中时,如果他们选择了流,他们应该能够获得包含提要的like box,同时生成like box代码

我使用了以下代码来实现这一点;但问题是我无法检索到喜欢该页面的用户的图片

如何检索他们的个人资料信息

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Facebook Feeds</title>

<script type="text/javascript">
function getPage()
{
    var getCont=document.getElementById("txarea").value;
    document.getElementById("getContent").innerHTML=getCont;
}
</script>
</head>

<body>

<input type="text" id="txarea" />
<input type="button" id="fbBtnClick" value="Click" onclick="getPage();"></input>
<div id="getContent">
</div>

</body>
</html>

Facebook订阅源
函数getPage()
{
var getCont=document.getElementById(“txarea”).value;
document.getElementById(“getContent”).innerHTML=getCont;
}

因此,我已经对此进行了测试,以下似乎是问题所在:

默认情况下,iframe的高度设置为427px图片正在加载,但由于iframe的高度不够长而被隐藏

默认情况下,facebook提供以下信息:

改变这一点:

我将展示这些图片。。因此,我认为您必须从用户那里获取输入,然后更改高度,然后进行设置