Facebook API | facebook.GraphAPIError:(#100)只有网址所有者才能指定图片

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

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

如果我手动发布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.

我用它搜索了一下,但发现类似的问题解决了在Business Manager仪表板中注册域的问题,我尝试了一下,但显示“亚马逊域已注册”(显然)

我该怎么办?

zppeipei 回答:Facebook API | facebook.GraphAPIError:(#100)只有网址所有者才能指定图片

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

本文链接:https://www.f2er.com/3157750.html

大家都在问