To get the latest post and comments of a facebook page -


i want latest post , comments particular page.

the below code gets posts , comments of page using graph api explorer:

 var accesstoken = hdnaccesstoken.value;//page access token  var client = new facebookclient(accesstoken);  dynamic result = client.get("me", new { fields = "name,id,posts" }); 

my requirement latest(30 mins example) posts , comments. how can able achieve that?

what you'll want try use field expansion. allow limit results number.

i'm not sure sdk using, raw request graph api, you'll want similar :

https://graph.facebook.com/user_id?fields=id,name,posts.limit(10) 

this limit number of posts returned last (most recent) 10 results. can test out graph api explorer.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -