嗨,我是一个facebook页面的所有者,在里面我想发布一些从网站上获取的内容。 例如,我想发布一个类似以下内容的amazon项目:
https://www.amazon.it/dp/....
如果我手动发布的网址,我可以看到正确的预览和所有细节有关的项目,但编程我不能
我使用的是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.
我在google上搜索了一下,发现在businessmanager仪表板上注册这个域也解决了类似的问题,我试过了,但上面写着“Amazon域已经注册了”(很明显)
我能做什么?你知道吗
你不拥有www.amazon.it(我假设),所以您不能使用自己的图片或自己的开放图形数据。不管怎样,动态数据已经不可能了,您需要在共享URL的源代码中使用opengraph标记。它们会自动使用。你知道吗
相关问题 更多 >
编程相关推荐