0

我需要一些帮助来获取电话间隙演示项目中的 facebook 提要。我正在使用jquery mobile 使用这个样式化 RSS 提要。但是对于将使用哪个 index.html 感到困惑。

4

1 回答 1

0

尝试这个..

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />

        <link rel="stylesheet" type="text/css" href="css/styles.css" />
        <title>feed</title>
        <script src="phonegap.js"></script>
        <script src="js/lib/jquery-2.0.3.js"></script>

        <script type="text/javascript">
        console.log("hii")


          $(document).ready(function(){

              $.get("http://www.facebook.com/feeds/page.php?id=360453900718092&format=atom10", function (data) {
              $(data).find("entry").each(function () { // or "item" or whatever suits your feed
                  var el = $(this);

                  console.log("------------------------");
                  console.log("title      : " + el.find("title").text());
                  console.log("content     : " + el.find("content").text());

              });
            });
          });

        </script>

    </head>
    <body>

    </body>
</html>
于 2013-09-24T09:05:46.290 回答