Sundar Singh
Sundar Singh

Reputation: 686

How to get complete information about post using facebook sdk C#

When I use postman application or Graph API explorer then i get complete information or all fields of posts as explained in https://developers.facebook.com/docs/graph-api/reference/v2.0/post

enter image description here

I have not use fields attribute in above image even then it is showing all fields so i am looking for the answer to pass field attribute in query string.

But when i use SDK i get only 3 fields created_time, id and message, please refer following image:

enter image description here

Kindly tell how to get all fields of the posts using facebook sdk c#?

Upvotes: 0

Views: 1085

Answers (1)

andyrandy
andyrandy

Reputation: 73984

You need to specify the fields parameter, it´s called "Declarative Fields" and came with v2.4 of the Graph API: /me/posts?fields=field1,field2,field3,...

The possible fields can be found in the docs, you should use the latest version though: https://developers.facebook.com/docs/graph-api/reference/v2.7/post

Make sure you are using a newer Version of the API, you are trying to use v1.0 in Postman (which does not exist anymore).

Upvotes: 1

Related Questions