我正在使用 Instagram API,并希望获得代表用户发表评论的权限。但不知何故,它不起作用。
请求链接:
https://instagram.com/oauth/authorize/?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=token&scope=comments+likes
当此链接将要打开时,我被要求授予基本信息和喜欢的权限,但不允许发表评论...
现在,在我授予权限并想要使用 API 添加评论后,它返回 400 错误:
{"meta":{"error_type":"OAuthPermissionsException","code":400,"error_message":"This request requires scope=comments, but this access token is not authorized with this scope. The user must re-authorize your application with scope=comments to be granted write permissions."}}
我究竟做错了什么?无法获得评论范围吗?我这样做就像 Instagram 在最底部 Instagram 身份验证的此链接上描述的那样