Facebook API | facebook.GraphAPIError: (#100) Only owners of the URL have the ability to specify the picture

Facebook API | facebook.GraphAPIError: (#100) Only owners of the URL have the ability to specify the picture

您好,我是 Facebook 页面的所有者,我想在其中 post 从网站上获取一些内容。 例如,我想 post 亚马逊这样的商品:

https://www.amazon.it/dp/....

如果我 post 手动 url 我可以正确看到预览和与该项目相关的所有详细信息,但以编程方式我不能

我正在使用 python 3.6,实际上我有这个脚本:

import facebook
graph = facebook.GraphAPI(access_token=token)

attachment =  {
        'name': 'Link name',
        'link': 'https://www.amazon.it/dp/...',
        'caption': 'Check out this example',
        'description': 'This is a longer description of the attachment',
        'picture': 'url_of_the_image'
    }

graph.put_wall_post(message='Check this out...', attachment=attachment, profile_id='my_page_id')

当我启动脚本时它引发了异常

raise GraphAPIError(result)
    facebook.GraphAPIError: (#100) Only owners of the URL have the ability to specify the picture, name, thumbnail or description params.

我用谷歌搜索,发现类似的问题解决了在业务管理器仪表板中注册域,我试过了,但它说 "Amazon domain already registered"(很明显)

我能做什么?

您不拥有 www.amazon.it(我假设),因此您不能使用自己的图片或自己的 Open Graph 数据。动态数据无论如何都不再可能了,您需要在共享 URL 的源中使用 Open Graph 标签。它们会自动使用。