Reading Facebook wall xml and feeding to jquery mobile web app

RicGluluttMus

New Member
Im trying to read basic wall information from Facebook, and display in a query mobile list. The code is working fine via phonegap, but when published as a web app in getting a "xmlhttprequest cannont load https://www.facebook.com..." error.Current Code:\[code\] <script type="text/javascript">var cc_news_feed = 'http://www.facebook.com/feeds/page.php?id=47160778899&format=rss20&callback=?';var cc_news_item = 'item';var cc_news_title = 'title';var cc_news_content = 'description';var cc_news_limit = 10; $('#news').live('pageshow', function(){ if(newsLoaded != '1'){ cc_news_limit = cc_news_limit +1; $.mobile.showPageLoadingMsg(); $("#newslist").empty(); $.ajax({ type: "GET", url: cc_news_feed, dataType: "xml", success: parseXml }); function parseXml(xml10){ var i = 1; $(xml10).find(cc_news_item).each(function(){ if(i < cc_news_limit){ //Limit results var pageid = "detailpage" + i; $("#newslist").append("<li data-theme=\"y\"><a href='javascript:void(0)' onclick=\"javascript: $.mobile.changePage($('"+"#"+pageid+"'), 'slide');\">" + ($(this).find(cc_news_title).text()) + "</a></li>"); $("body").append("<div data-role='page' id='"+pageid+"'><div data-role='header' data-theme='z'><a href='http://stackoverflow.com/questions/10329943/#news' data-direction='reverse'>back</a><h1>News Detail</h1></div><div data-role='content' class='newsdetail'><h1>" + ($(this).find(cc_news_title).text()) + "</h1>" + ($(this).find(cc_news_content).text()) +"</div></div>"); i++; } }); $("#newslist").listview('refresh'); $.mobile.hidePageLoadingMsg(); //Mark as loaded newsLoaded = '1'; } } });</script><div data-role="page" id="news" data-theme="z"> <div data-role="header" data-position="fixed" data-theme="z"> <h1>News</h1> <a href="http://stackoverflow.com/questions/10329943/#home" data-icon="home" class="ui-btn-right" data-iconpos="notext" data-transition="slidedown" data-theme="x">Home</a> </div> <div data-role="content"> <ul data-role="listview" data-theme="z" data-inset="true" id="newslist"></ul> </div></div>\[/code\]I have read a few bits about the xmlhttprequest but still a little confused and lost...
 
Back
Top