You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调用Instagram API的ig_hashtag_search接口无法获取有效user_id,请求协助

解决Instagram API ig_hashtag_search的user_id无效问题
  • 首先明确:这个接口要求的user_id必须是Instagram商业账号(Instagram Business Account)或创作者账号(Instagram Creator Account)的ID,个人普通账号ID、Facebook用户/主页ID都不适用。
  • 怎么获取正确的ID:
    1. 先把你的Instagram账号转为商业/创作者账号(需绑定对应的Facebook主页)
    2. 通过Facebook Graph API调用/{你的Facebook主页ID}/instagram_accounts,返回结果里的id就是符合要求的Instagram账号ID
    3. 或者用授权后的/me/accounts端点(需要pages_show_list权限),找到对应主页下的Instagram账号ID
  • 额外检查项:
    • 确保你的应用已经获得instagram_basic、pages_show_list等必要权限,且完成了账号的授权流程
    • 确认输入的ID是纯数字格式,没有多余字符

错误提示"Param user_id is not a valid Instagram User ID"大概率是因为你用了非商业/创作者账号的ID,或者ID格式不对。

内容的提问来源于stack exchange,提问作者user1977269

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.21 01:36:34