0

我正在尝试按照 OG 文档中的说明发布带有大照片的开放图操作:

将照片添加到故事

我的操作已获得所有可选操作的批准,包括用户生成的照片。

每当我发出此操作时,故事仍会出现在股票行情中,就好像发布请求中没有包含用户生成的照片一样。没有为我的应用创建相册,显然照片没有添加到所述相册中。

我应该遵循一些未记录的行为吗?我是否应该在执行此操作的对象的标头中省略 og:image?

4

1 回答 1

0

I figured out my problem.

The documentation was wrong in the examples section on this topic on facebook docs.

Their example had dashes where underscores are needed: i.e.

user-generated = user_generated

POST /me/cookbook:eat?
recipe=http://www.example.com/recipes/pizza/&
image[0][url]=http://www.example.com/recipes/pizza/pizza.jpg&
image[0][user-generated]=true&
image[1][url]=http://www.example.com/recipes/pizza/pizza2.jpg&
image[1][user-generated]=true&
access_token=VALID_ACCESS_TOKEN

should be

POST /me/cookbook:eat?
recipe=http://www.example.com/recipes/pizza/&
image[0][url]=http://www.example.com/recipes/pizza/pizza.jpg&
image[0][user_generated]=true&
image[1][url]=http://www.example.com/recipes/pizza/pizza2.jpg&
image[1][user_generated]=true&
access_token=VALID_ACCESS_TOKEN

In case anyone else runs into this before they fix the documentation. Opened a bug report: Bug Report

于 2013-03-29T01:29:15.990 回答