Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/396.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.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 JS FB:墙不工作_Javascript_Jquery_Facebook - Fatal编程技术网

Javascript JS FB:墙不工作

Javascript JS FB:墙不工作,javascript,jquery,facebook,Javascript,Jquery,Facebook,我正在尝试使用以下插件将facebook墙集成到我的.net网站上。 我尝试了以下内容,但似乎没有任何效果,所有脚本都在正确的位置,我似乎找不到问题 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="facebook.aspx.cs" Inherits="facebook" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt

我正在尝试使用以下插件将facebook墙集成到我的.net网站上。

我尝试了以下内容,但似乎没有任何效果,所有脚本都在正确的位置,我似乎找不到问题

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="facebook.aspx.cs" Inherits="facebook" %>

<!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 runat="server">
    <title>Facebook</title>

    <script type="text/javascript" src="_includes/js/jquery-1.6.1.min.js"></script> 
    <link href="_includes/css/jquery.neosmart.fb.wall.css" rel="stylesheet" type="text/css" />
    <script src="_includes/js/jquery.neosmart.fb.wall.js" type="text/javascript"></script>

    <script type="text/javascript">
      $('#live-demo').fbWall({
            id: '165674747098261',
            accessToken: '206158599425293|7809823973348bcf8cd72f6d.1-100000465435225|BW9n2eoyL7EYvJs7GEmv61NbBFk',
            showGuestEntries: true,
            showComments: true,
            max: 5,
            timeConversion: 24
        });


    </script>

</head>
<body>
<p>hello</p>
  <div id="live-demo"></div>
</body>
</html>

脸谱网
$(“#现场演示”).fbWall({
id:'1656747098261',
accessToken:'20615859425293 | 7809823973348bcf8cd72f6d.1-10000046543525 | BW9n2eoyL7EYvJs7GEmv61NbBFk',
showGuestEntries:没错,
评论:没错,
最高:5,
时间转换:24
});
你好


您可以使用
$(document.ready)(function(){//FB.wall代码//})这是在页面准备就绪时使代码运行的方法。

我在jquery的末尾添加了一个警报,以查看其处理过程是否正常,我仍然不确定问题出在哪里。我一直在寻找一种方法使其工作数小时。你的回答解决了我的问题。谢谢