Determining type of object with id in FB Graph API

后端 未结 2 1951
清酒与你
清酒与你 2021-02-01 19:04

Is there a way to determine what kind of object is represented by the given ID https://graph.facebook.com/ID. When I\'m requesting this in Graph API Explorer tool,

2条回答
  •  自闭症患者
    2021-02-01 19:32

    This is possible if you using something Facebook call "introspection" by adding metadata argument to your request:

    GET http://graph.facebook.com/object_id?metadata=1
    

    The result will contain type field

提交回复
热议问题