【发布时间】:2020-11-29 17:25:10
【问题描述】:
data=requests.get("https://graph.facebook.com/v8.0/oembed_post?url=https%3A%2F%2Fwww.facebook.com%2Fphoto%3Ffbid%3D2432221750211842&set=a.105613599539347&access_token=access-token")
print(data.json())
当我尝试从 facebook api 获取 html 以发布帖子时,它显示如下错误。我想要 html 代码,但它显示错误
错误
{'error': {'message': '(#10) 要使用此端点,您必须首先将 OEMBED 产品添加到您的应用程序中。', 'type': 'OAuthException', 'code': 10, ' fbtrace_id': 'AeELX_E5zJZVMGtnQbNGSni'}}
【问题讨论】:
-
错误信息不就是告诉你为什么吗? developers.facebook.com/docs/plugins/oembed#oembed-product
标签: facebook facebook-graph-api facebook-javascript-sdk embed