根据document,Open Graph API支持在不指定 og:title
属性的情况下创建对象 . 我'm using the Object API, and since the objects I' m在我的请求中定义了don 't have meaningful titles, I presumed that I could do the same by just not including a ' title'字段 .
我发送的请求(通过Graph API Explorer)与此相同:
POST https://graph.facebook.com/me/objects/namespace:foo
object={
"image": "http://cdn.example.com/images/bar/l",
"url": "http://example.com/photos/baz?image=bar",
"description": "Image caption",
"site_name": "Example"
}
除此之外,我一直得到的回应是:
{
"error": {
"message": "(#100) Object Missing a Required Value: Object at URL 'http://example.com/photos/baz?image=bar' of type 'namespace:foo' is invalid because a required property 'og:title' of type 'string' was not provided.",
"type": "OAuthException",
"code": 100
}
}
那么,根本不可能通过Object API创建没有 Headers 的对象吗?这仅适用于自托管对象吗?