Take the 2-minute tour ×

So when attempting to retrieve a posts 'type' field through the Graph API I have come across a problem.

If I use the format USERID_POSTID when retrieving the information from the Graph API it return a 'type' field for the post (status, link, video, checkin, etc).

The problem comes in if i try to query a post just by its POSTID. When sending a query this way I get all the same data EXCEPT a type field.

I have tried specifically requesting the fields when using just the POSTID and it is displeased if i ask for a type field.

So my questions are; Is it possible to get the 'type' field of a post when using just its ID as opposed to the USERID_POSTID format?

Im using the PHP SDK 3.1.1 if that makes any difference.

What really throws me off is the Graph API Explorer seems to be able to deduce the type when viewing it just by the POSTID

share|improve this question

1 Answer 1

up vote 1 down vote accepted

it put the type when I added metadata=true in the query string, not sure why

share|improve this answer
Excellent, thank you very much. Was this something you tried on a whim, or something I was overlooking in the documentation somewhere? –  Jason Penick Sep 3 '11 at 19:53
compared the Get request of the Graph explorer vs. the Get request of a browser hitting the url directly, in the web developer/web console of firefox 7 (similar things in firebug, fiddler, etc) –  alexl Sep 3 '11 at 20:06
Ingenious thinking. –  Jason Penick Sep 5 '11 at 16:38

Your Answer


