0

Facebook Graph API 是否像Flickr API一样提供反射

例如,Flickr 提供了有关该flickr.urls.lookupUser方法的以下反射信息:

{ "method": { "name": "flickr.urls.lookupUser", "needslogin": 0, "needssigning": 0, "requiredperms": 0, 
    "description": { "_content": "Returns a user NSID, given the url to a user's photos or profile." }, 
    "response": { "_content": "<user id=\"12037949632@N01\">\r\n    <username>Stewart<\/username> \r\n<\/user>" } }, "arguments": { 
    "argument": [
      { "name": "api_key", "optional": 0, "_content": "Your API application key. <a href=\"\/services\/api\/misc.api_keys.html\">See here<\/a> for more details." },
      { "name": "url", "optional": 0, "_content": "The url to the user's profile or photos page." }
    ] }...
4

1 回答 1

4

以编程方式获取文档最接近的方法是metadata=1在调用中使用参数。这将返回一个metadata对象connections,该对象具有该对象(又名 - 附加端点),以及它的描述fields

这是一个例子

GET /me?metadata=1
于 2013-03-21T20:12:04.883 回答