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

如何获取带public_content权限的Instagram访问令牌以查看点赞视频列表?

How to Get an Instagram Access Token with Permissions to Fetch Your Liked Videos

Hey there, I totally get the frustration—those third-party token generators only offer basic permissions, and the old tools you remembered have likely vanished thanks to Instagram's frequent API updates. Let's solve this properly using Meta's official tools, since relying on random third-party sites is unreliable (and they often stop working after platform changes).

First, a quick correction: the public_content permission you’re thinking of has actually been deprecated by Meta. To access your own liked videos, you need the user_likes permission via the Instagram Basic Display API—this is the official, supported way to access personal Instagram account data. Here's how to set this up step by step:

  • Step 1: Create a Meta Developer App
    Head to Meta's Developer Platform, sign up (or log in with your existing Meta account), and create a new app. Choose "Consumer" as the app type, then add the "Instagram Basic Display" product to your app dashboard.

  • Step 2: Add Yourself as a Test User
    In the Instagram Basic Display section of your app settings, go to "Test Users" and add your own Instagram account. Until your app gets public approval, only test users can authenticate with it—so this is a must for personal use.

  • Step 3: Generate an Access Token with Required Permissions
    Navigate to the "Basic Display" > "Token Generator" tab. Select your test user account, and ensure the requested scopes include user_profile (required to verify your account) and user_likes (required to access your liked content). Click "Generate Token" and follow the login prompt to authorize your app—you’ll receive an access token with both permissions.

  • Step 4: Fetch Your Liked Videos
    Use the generated token to call the Instagram Basic Display API endpoint:

    GET https://graph.instagram.com/me/media/liked?fields=id,media_type,media_url&access_token=YOUR_ACCESS_TOKEN
    

    You can filter the response for videos by checking the media_type field—look for entries where media_type=VIDEO.

Important Notes:

  • Short-lived test tokens expire after 1 hour, but you can generate a long-lived token (valid for 60 days) using your short-lived token and app client secret. You can refresh long-lived tokens before they expire to extend their validity.
  • For personal use, the test user setup is fully sufficient. If you want to share this functionality with others, you’ll need to submit your app for Meta’s review to get public access.

Content of the question comes from Stack Exchange, question author: user3162130

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.20 12:28:03