AyKarsi
AyKarsi

Reputation: 9685

Facebook get object type of http://graph.facebook.com/{id}

When I get a facebook graph object, I would like to differntiate between pages and users. Problem, I have not found any criteria on which I can base this decision.

A typeof function or nearly anything would be great, but I can't find anything in the documentation..

Upvotes: 3

Views: 1968

Answers (1)

Femi
Femi

Reputation: 64700

Add a metadata=1 request parameter and you will get a type property that tells you what it is.

Upvotes: 11

Related Questions