开发者

Retrieving a post's 'type' field with Graph API

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜