【问题标题】:how to fetch facebook feeds for phonegap 2.9.0 in ios如何在 ios 中获取 phonegap 2.9.0 的 facebook 提要
【发布时间】:2017-09-24 12:58:42
【问题描述】:

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

【问题讨论】:

    标签: ios cordova facebook-javascript-sdk


    【解决方案1】:

    试试这个..

    <!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>
    

    【讨论】:

      猜你喜欢
      • 2011-09-06
      • 2012-07-09
      • 1970-01-01
      • 1970-01-01
      • 2016-05-19
      • 2017-09-10
      • 1970-01-01
      • 1970-01-01
      • 2012-02-11
      相关资源
      最近更新 更多