如何在ios中获取phonegap 2.9.0的facebook feed

时间:2013-09-24 07:15:42

标签: ios cordova facebook-javascript-sdk

我需要一些帮助来获取手机间隙演示项目中的Facebook提要。我正在使用这个Styling RSS feeds using jquery mobile。但对于这将使用index.html会感到困惑。

1 个答案:

答案 0 :(得分: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>