@acedatacloud/skills 2026.704.4 → 2026.704.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/skills",
3
- "version": "2026.704.4",
3
+ "version": "2026.704.5",
4
4
  "description": "Agent Skills for AceDataCloud AI services — music, image, video generation, LLM chat, web search. Compatible with Claude Code, GitHub Copilot, Gemini CLI, OpenAI Codex, and 30+ AI coding agents.",
5
5
  "keywords": [
6
6
  "agent-skills",
@@ -24,14 +24,22 @@ Instagram publishes only **images / videos / reels** to a **professional**
24
24
 
25
25
  ### Resolve the Instagram account id
26
26
 
27
- If `$INSTAGRAM_IG_USER_ID` is set, use it. Otherwise derive it from the linked Page:
27
+ If `$INSTAGRAM_IG_USER_ID` is set, use it. Otherwise derive it from the token
28
+ try the **Page-token** path first (`/me` is the Page), then fall back to the
29
+ **user-token** path (`/me/accounts` → linked Page → IG account), so either token
30
+ type the connector accepts resolves cleanly:
28
31
 
29
32
  ```bash
30
33
  if [ -n "$INSTAGRAM_IG_USER_ID" ]; then
31
34
  IGID="$INSTAGRAM_IG_USER_ID"
32
35
  else
33
- PAGE=$(curl -sS "https://graph.facebook.com/v21.0/me/accounts?access_token=$INSTAGRAM_ACCESS_TOKEN" | jq -r '.data[0].id')
34
- IGID=$(curl -sS "https://graph.facebook.com/v21.0/$PAGE?fields=instagram_business_account&access_token=$INSTAGRAM_ACCESS_TOKEN" | jq -r '.instagram_business_account.id')
36
+ # Page access token: /me IS the Page, read its linked IG account directly
37
+ IGID=$(curl -sS "https://graph.facebook.com/v21.0/me?fields=instagram_business_account&access_token=$INSTAGRAM_ACCESS_TOKEN" | jq -r '.instagram_business_account.id // empty')
38
+ if [ -z "$IGID" ]; then
39
+ # User access token: list the managed Page, then its linked IG account
40
+ PAGE=$(curl -sS "https://graph.facebook.com/v21.0/me/accounts?access_token=$INSTAGRAM_ACCESS_TOKEN" | jq -r '.data[0].id // empty')
41
+ IGID=$(curl -sS "https://graph.facebook.com/v21.0/$PAGE?fields=instagram_business_account&access_token=$INSTAGRAM_ACCESS_TOKEN" | jq -r '.instagram_business_account.id // empty')
42
+ fi
35
43
  fi
36
44
  echo "ig_user_id=$IGID"
37
45
  ```