of page/profile/group.
var graphURL = "https://graph.facebook.com/";
$.ajax({
// async: false,
cache:false,
url: graphURL+id+"/feed?limit=25&access_token="+accessToken,
dataType: "jsonp",
success:function (data, textStatus, XMLHttpRequest) {
var data = data.data;
},
complete:function () { }
});
here id is the facebook id of facebook page/profile/group.Getting
id is little tricky, you will not need any code to get that.
I recommend you to use google.com, also you will need any facebook
access token of any user to include in graph api url in the code
above.
After ajax call success you get all posts in the 'data' paremeter,
which is structured differently.to know how you extract info from
it, you can view the structure by entering above url in Graph api
explorer here -
https://developers.facebook.com/tools/explorer
If you have questions about this post or any topics, post your questions in
discussions/forum in this website, you will get your answer