Show Facebook page timeline


#1

Hi!

My current goal is to show the timeline of a Facebook page within my app.
Logically, I would take the website-route and create a widget, implement it and done, but it doesn’t work that smooth.

Currently I have this code inside my facebook.html (edited a bit for privacy reasons):

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "http://connect.facebook.net/nl_NL/sdk.js#xfbml=1&version=v2.4&appId=1600000000000";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<ion-view view-title="Facebook">
  <ion-content>
    <div class="fb-page" data-href="https://www.facebook.com/TEST" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false" data-show-posts="true"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/TEST"><a href="https://www.facebook.com/TEST">TEST</a></blockquote></div></div>
  </ion-content>
</ion-view>

This should work but it doesn’t (It does in the browser, but it has to work on Android and iOS).
I’ve search all over the web but every tutorial/plugin has the intention to share and like from the app, which is not the case here.

Question:
How can I just show the content of a Facebook like page without sigining in via oauth or any other login-screen?


#2

I have the same probelm as well. I can make it working on simulator but not on real device.

Not only facebook, but twitter as well (for twitter I cant even make it working on simulator).