Show all facebook posts in a list

Asked

Viewed 236 times

1

I have numerous profiles and fan pages that should control the content.

Breaking in one by one is a huge job. That’s why I’m making this application to show all posts by date order, separated by profile/fan page.

Through Facebook Graph I can rescue the data from STREAM table, however these are not enough to mount the full post (I did not find the links, photos, etc., for example).

I’m trying to get JSON via JSONP this way:

var fburl = "https://graph.facebook.com/xxxxxxxxx";

$.get(fburl, function(data){
    console.log(data);
},'jsonp');

However, return message: "Unsupported get request.".

How best to resolve this situation?

  • 1

    This seems to be problems with the permission token.

  • This gives me an HTTP 400. The URL is correct?

1 answer

2

The problem was in access_token. This way worked perfectly:

var fburl = "https://graph.facebook.com/xxxxxxxxx?access_token=yyyyyyyyy";

$.get(fburl, function(data){
    console.log(data);
},'jsonp');
  • 1

    You can mark your own answer as answered.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.