Saturday, 03 August 2013 22:33

how to show facebook wall posts of page or profile or group by Graph api

Written by 
Rate this item
(0 votes)

You can show wall posts of any public facebook page/group/profile
using Graph api in your website if you know javascript & jquery.

By using following jquery ajax call, you an get all feed posts
of page/profile/group.

var graphURL = "";
// async: false,
url: graphURL+id+"/feed?limit=25&access_token="+accessToken,
dataType: "jsonp",
success:function (data, textStatus, XMLHttpRequest) {
var 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, also you will need any facebook
access token of any user to include in graph api url in the code

After ajax call success you get all posts in the 'data' paremeter,
which is structured know how you extract info from
it, you can view the structure by entering above url in Graph api
explorer here -

If you have questions about this post or any topics, post your questions in
discussions/forum in this website, you will get your answer

Read 4196 times Last modified on Monday, 19 August 2013 14:36
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.