Unable to retrieve facebook feed with valid IDs
1

Hello, I've been on this for a few hours now, i've read the docs related to what i'm trying to achieve and everything looks right... But it's not working. I'm simply trying to retrieve a facebook page's feed (3 lasts posts) on my website. So i'm doing :

<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId            : 'FACEBOOK_APP_ID',
      autoLogAppEvents : true,
      xfbml            : true,
      version          : 'v17.0'
    });
  };
</script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>

With FACEBOOK_APP_ID being the app ID that we can find (also) in the url of the app (example : https://developers.facebook.com/apps/FACEBOOK_APP_ID/dashboard/

Then in an external JS file (that is logging FB correctly, I do :

    FB.api('/FACEBOOK_PAGE_ID/feed', function(response) {
   console.log(response);
});

with FACEBOOK_PAGE_ID being the page ID that we can find in the about section of the said page.

Is there something I'm missing here ? The doc is NOT talking about anything else so I'm starting to lose my mind.. haha Thanks !

Malamute
Asked about a year ago
Malamute

Forgot to say what i'm haivng as error : "(#200) Provide valid app ID"

August 29 at 3:40 AM