I’m trying to read my app comments, but I don’t know how? there is no correct/complete sample.
[CanvasAuthorize(Permissions = "user_about_me")]
public ActionResult About()
{
var client = new FacebookWebClient(FacebookWebContext.Current.AccessToken);
dynamic result = client.Get("19292868552_118464504835613/comments");
ViewBag.result = result;
}
and on view, try to read like this:
foreach (dynamic comment in ViewBag.result)
{
@comment.id
<text><br /></text>
}
please help how can I read the user comments entered for a Facebook page in a MVC application.
as you know in Facebook you can create your own page and that page has an ID in URL.
Here is the codes for the controller:
and the codes for your view:
A function for getting the users pictures:
I hope it will be helpful for some developers but I still have problem with pagination. I didn’t find a handy solution for that. Thanks, Pedram