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">rn <username>Stewart</username> rn</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." }
] }...
最接近以编程方式获取文档的方法是在调用中使用metadata=1
参数。这将返回一个metadata
对象,该对象具有connections
(又名-附加端点),以及其fields
下面是一个例子:
GET /me?metadata=1