@xnkee/n8n-nodes-instagram 1.7.0 → 2.1.0

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.
Files changed (141) hide show
  1. package/{LICENSE.md → LICENSE} +21 -21
  2. package/README.md +132 -437
  3. package/dist/credentials/InstagramApi.credentials.d.ts +10 -0
  4. package/dist/credentials/InstagramApi.credentials.js +55 -0
  5. package/dist/credentials/InstagramApi.credentials.js.map +1 -0
  6. package/dist/credentials/InstagramOAuth2Api.credentials.d.ts +2 -2
  7. package/dist/credentials/InstagramOAuth2Api.credentials.js +33 -113
  8. package/dist/credentials/InstagramOAuth2Api.credentials.js.map +1 -1
  9. package/dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.d.ts +17 -0
  10. package/dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.js +116 -0
  11. package/dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.js.map +1 -0
  12. package/dist/credentials/instagram.svg +1 -0
  13. package/dist/index.d.ts +5 -0
  14. package/dist/index.js +22 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/nodes/Instagram/GenericFunctions.d.ts +27 -23
  17. package/dist/nodes/Instagram/GenericFunctions.js +182 -223
  18. package/dist/nodes/Instagram/GenericFunctions.js.map +1 -1
  19. package/dist/nodes/Instagram/Instagram.node.d.ts +1 -1
  20. package/dist/nodes/Instagram/Instagram.node.js +109 -2353
  21. package/dist/nodes/Instagram/Instagram.node.js.map +1 -1
  22. package/dist/nodes/Instagram/Instagram.node.json +17 -0
  23. package/dist/nodes/Instagram/InstagramChatTrigger.node.d.ts +17 -0
  24. package/dist/nodes/Instagram/InstagramChatTrigger.node.js +415 -0
  25. package/dist/nodes/Instagram/InstagramChatTrigger.node.js.map +1 -0
  26. package/dist/nodes/Instagram/InstagramChatTrigger.node.json +16 -0
  27. package/dist/nodes/Instagram/descriptions/comment/Comment.fields.d.ts +2 -0
  28. package/dist/nodes/Instagram/descriptions/comment/Comment.fields.js +161 -0
  29. package/dist/nodes/Instagram/descriptions/comment/Comment.fields.js.map +1 -0
  30. package/dist/nodes/Instagram/descriptions/comment/Comment.operations.d.ts +2 -0
  31. package/dist/nodes/Instagram/descriptions/comment/Comment.operations.js +62 -0
  32. package/dist/nodes/Instagram/descriptions/comment/Comment.operations.js.map +1 -0
  33. package/dist/nodes/Instagram/descriptions/comment/index.d.ts +2 -0
  34. package/dist/nodes/Instagram/descriptions/comment/index.js +8 -0
  35. package/dist/nodes/Instagram/descriptions/comment/index.js.map +1 -0
  36. package/dist/nodes/Instagram/descriptions/custom/Custom.fields.d.ts +2 -0
  37. package/dist/nodes/Instagram/descriptions/custom/Custom.fields.js +65 -0
  38. package/dist/nodes/Instagram/descriptions/custom/Custom.fields.js.map +1 -0
  39. package/dist/nodes/Instagram/descriptions/custom/Custom.operations.d.ts +2 -0
  40. package/dist/nodes/Instagram/descriptions/custom/Custom.operations.js +26 -0
  41. package/dist/nodes/Instagram/descriptions/custom/Custom.operations.js.map +1 -0
  42. package/dist/nodes/Instagram/descriptions/custom/index.d.ts +2 -0
  43. package/dist/nodes/Instagram/descriptions/custom/index.js +8 -0
  44. package/dist/nodes/Instagram/descriptions/custom/index.js.map +1 -0
  45. package/dist/nodes/Instagram/descriptions/index.d.ts +7 -0
  46. package/dist/nodes/Instagram/descriptions/index.js +24 -0
  47. package/dist/nodes/Instagram/descriptions/index.js.map +1 -0
  48. package/dist/nodes/Instagram/descriptions/insight/AccountInsight.fields.d.ts +2 -0
  49. package/dist/nodes/Instagram/descriptions/insight/AccountInsight.fields.js +164 -0
  50. package/dist/nodes/Instagram/descriptions/insight/AccountInsight.fields.js.map +1 -0
  51. package/dist/nodes/Instagram/descriptions/insight/Insight.operations.d.ts +2 -0
  52. package/dist/nodes/Instagram/descriptions/insight/Insight.operations.js +32 -0
  53. package/dist/nodes/Instagram/descriptions/insight/Insight.operations.js.map +1 -0
  54. package/dist/nodes/Instagram/descriptions/insight/MediaInsight.fields.d.ts +2 -0
  55. package/dist/nodes/Instagram/descriptions/insight/MediaInsight.fields.js +87 -0
  56. package/dist/nodes/Instagram/descriptions/insight/MediaInsight.fields.js.map +1 -0
  57. package/dist/nodes/Instagram/descriptions/insight/index.d.ts +4 -0
  58. package/dist/nodes/Instagram/descriptions/insight/index.js +12 -0
  59. package/dist/nodes/Instagram/descriptions/insight/index.js.map +1 -0
  60. package/dist/nodes/Instagram/descriptions/media/Media.operations.d.ts +2 -0
  61. package/dist/nodes/Instagram/descriptions/media/Media.operations.js +62 -0
  62. package/dist/nodes/Instagram/descriptions/media/Media.operations.js.map +1 -0
  63. package/dist/nodes/Instagram/descriptions/media/MediaGet.fields.d.ts +2 -0
  64. package/dist/nodes/Instagram/descriptions/media/MediaGet.fields.js +163 -0
  65. package/dist/nodes/Instagram/descriptions/media/MediaGet.fields.js.map +1 -0
  66. package/dist/nodes/Instagram/descriptions/media/MediaPublish.fields.d.ts +2 -0
  67. package/dist/nodes/Instagram/descriptions/media/MediaPublish.fields.js +285 -0
  68. package/dist/nodes/Instagram/descriptions/media/MediaPublish.fields.js.map +1 -0
  69. package/dist/nodes/Instagram/descriptions/media/index.d.ts +4 -0
  70. package/dist/nodes/Instagram/descriptions/media/index.js +12 -0
  71. package/dist/nodes/Instagram/descriptions/media/index.js.map +1 -0
  72. package/dist/nodes/Instagram/descriptions/mention/Mention.fields.d.ts +2 -0
  73. package/dist/nodes/Instagram/descriptions/mention/Mention.fields.js +122 -0
  74. package/dist/nodes/Instagram/descriptions/mention/Mention.fields.js.map +1 -0
  75. package/dist/nodes/Instagram/descriptions/mention/Mention.operations.d.ts +2 -0
  76. package/dist/nodes/Instagram/descriptions/mention/Mention.operations.js +38 -0
  77. package/dist/nodes/Instagram/descriptions/mention/Mention.operations.js.map +1 -0
  78. package/dist/nodes/Instagram/descriptions/mention/index.d.ts +2 -0
  79. package/dist/nodes/Instagram/descriptions/mention/index.js +8 -0
  80. package/dist/nodes/Instagram/descriptions/mention/index.js.map +1 -0
  81. package/dist/nodes/Instagram/descriptions/message/Message.fields.d.ts +2 -0
  82. package/dist/nodes/Instagram/descriptions/message/Message.fields.js +123 -0
  83. package/dist/nodes/Instagram/descriptions/message/Message.fields.js.map +1 -0
  84. package/dist/nodes/Instagram/descriptions/message/Message.operations.d.ts +2 -0
  85. package/dist/nodes/Instagram/descriptions/message/Message.operations.js +44 -0
  86. package/dist/nodes/Instagram/descriptions/message/Message.operations.js.map +1 -0
  87. package/dist/nodes/Instagram/descriptions/message/index.d.ts +2 -0
  88. package/dist/nodes/Instagram/descriptions/message/index.js +8 -0
  89. package/dist/nodes/Instagram/descriptions/message/index.js.map +1 -0
  90. package/dist/nodes/Instagram/descriptions/user/User.operations.d.ts +2 -0
  91. package/dist/nodes/Instagram/descriptions/user/User.operations.js +38 -0
  92. package/dist/nodes/Instagram/descriptions/user/User.operations.js.map +1 -0
  93. package/dist/nodes/Instagram/descriptions/user/UserInsights.fields.d.ts +2 -0
  94. package/dist/nodes/Instagram/descriptions/user/UserInsights.fields.js +164 -0
  95. package/dist/nodes/Instagram/descriptions/user/UserInsights.fields.js.map +1 -0
  96. package/dist/nodes/Instagram/descriptions/user/UserProfile.fields.d.ts +2 -0
  97. package/dist/nodes/Instagram/descriptions/user/UserProfile.fields.js +83 -0
  98. package/dist/nodes/Instagram/descriptions/user/UserProfile.fields.js.map +1 -0
  99. package/dist/nodes/Instagram/descriptions/user/index.d.ts +4 -0
  100. package/dist/nodes/Instagram/descriptions/user/index.js +12 -0
  101. package/dist/nodes/Instagram/descriptions/user/index.js.map +1 -0
  102. package/dist/nodes/Instagram/handlers/CommentHandler.d.ts +2 -0
  103. package/dist/nodes/Instagram/handlers/CommentHandler.js +63 -0
  104. package/dist/nodes/Instagram/handlers/CommentHandler.js.map +1 -0
  105. package/dist/nodes/Instagram/handlers/CustomHandler.d.ts +2 -0
  106. package/dist/nodes/Instagram/handlers/CustomHandler.js +28 -0
  107. package/dist/nodes/Instagram/handlers/CustomHandler.js.map +1 -0
  108. package/dist/nodes/Instagram/handlers/InsightHandler.d.ts +2 -0
  109. package/dist/nodes/Instagram/handlers/InsightHandler.js +42 -0
  110. package/dist/nodes/Instagram/handlers/InsightHandler.js.map +1 -0
  111. package/dist/nodes/Instagram/handlers/MediaHandler.d.ts +2 -0
  112. package/dist/nodes/Instagram/handlers/MediaHandler.js +172 -0
  113. package/dist/nodes/Instagram/handlers/MediaHandler.js.map +1 -0
  114. package/dist/nodes/Instagram/handlers/MentionHandler.d.ts +2 -0
  115. package/dist/nodes/Instagram/handlers/MentionHandler.js +48 -0
  116. package/dist/nodes/Instagram/handlers/MentionHandler.js.map +1 -0
  117. package/dist/nodes/Instagram/handlers/MessageHandler.d.ts +2 -0
  118. package/dist/nodes/Instagram/handlers/MessageHandler.js +57 -0
  119. package/dist/nodes/Instagram/handlers/MessageHandler.js.map +1 -0
  120. package/dist/nodes/Instagram/handlers/UserHandler.d.ts +2 -0
  121. package/dist/nodes/Instagram/handlers/UserHandler.js +48 -0
  122. package/dist/nodes/Instagram/handlers/UserHandler.js.map +1 -0
  123. package/dist/nodes/Instagram/instagram.svg +1 -0
  124. package/package.json +34 -46
  125. package/API_REFERENCE.md +0 -907
  126. package/AUTHENTICATION_GUIDE.md +0 -718
  127. package/CHANGELOG.md +0 -391
  128. package/dist/credentials/InstagramUnifiedLoginApi.credentials.d.ts +0 -9
  129. package/dist/credentials/InstagramUnifiedLoginApi.credentials.js +0 -481
  130. package/dist/credentials/InstagramUnifiedLoginApi.credentials.js.map +0 -1
  131. package/dist/nodes/Instagram/InstagramTrigger.node.d.ts +0 -17
  132. package/dist/nodes/Instagram/InstagramTrigger.node.js +0 -398
  133. package/dist/nodes/Instagram/InstagramTrigger.node.js.map +0 -1
  134. package/dist/nodes/Instagram/instagram-large.svg +0 -27
  135. package/dist/nodes/Instagram/instagram-small.svg +0 -14
  136. package/dist/nodes/Instagram/types.d.ts +0 -171
  137. package/dist/nodes/Instagram/types.js +0 -3
  138. package/dist/nodes/Instagram/types.js.map +0 -1
  139. package/dist/package.json +0 -76
  140. package/dist/tsconfig.tsbuildinfo +0 -1
  141. package/index.js +0 -0
package/CHANGELOG.md DELETED
@@ -1,391 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to @xnkee/n8n-nodes-instagram will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ---
9
-
10
- ## [1.7.0] - 2026-11-25
11
-
12
- ### Added
13
- - **Instagram API with Unified Login** - new credential **Instagram Unified Login API**
14
- - Clients log in with Instagram or Facebook through the Login URL of a Unified Login configuration (`config_id`); no Facebook Page required
15
- - Authorization code exchange (`GET graph.facebook.com/v27.0/oauth/access_token`) or pasted Business Integration System User Access Token
16
- - Auto-discovery of the client business ID (`/me?fields=client_business_id`) and the shared Instagram account (`/me/assigned_instagram_accounts`)
17
- - **Automatic token renewal**: tokens with expiration are renewed before they expire through `POST /{client-business-id}/system_user_access_tokens` (requires `business_management`); the new token is persisted in the credential and survives restarts. Failed renewals keep the current token and retry every 6 hours
18
- - Every request is signed with `appsecret_proof`
19
- - **Authentication** parameter in the Instagram and Instagram Trigger nodes (Unified Login or Instagram Login)
20
- - Instagram Trigger: automatic subscription of the account to the selected webhook fields (`POST /{ig-id}/subscribed_apps`) on activation, keeping fields already subscribed
21
-
22
- ### Changed
23
- - Node version 2 of Instagram and Instagram Trigger uses Unified Login by default. Version 1 workflows keep Instagram Login
24
- - Unified Login endpoints on `graph.facebook.com/v27.0`: messages and private replies use `/{ig-id}/messages`, "Get My Profile" uses `/{ig-id}` with the IG User fields of `graph.facebook.com`
25
- - Graph API version updated from v23.0 to v27.0 (both hosts)
26
- - The Instagram account ID is resolved once per execution instead of once per item
27
- - Instagram Trigger: signature validated against the raw request body; messaging notifications delivered inside `changes` are handled; comment ID also read from `comment_id`
28
-
29
- ---
30
-
31
- ## [1.6.0] - 2025-12-02
32
-
33
- ### Added
34
- - **New Comment Resource** - Complete comment moderation support for Instagram posts
35
- - **Get Comments**: Retrieve all comments on a media post with pagination support
36
- - **Get Replies**: Get replies to a specific comment
37
- - **Reply to Comment**: Post a public reply to a comment on your posts
38
- - **Send Private Reply**: Send a private DM to a commenter (within 7-day window)
39
- - **Delete Comment**: Delete a comment from your posts
40
- - **Hide/Unhide Comment**: Toggle comment visibility without deleting
41
-
42
- ### Technical Details
43
- - Uses Instagram Graph API endpoints:
44
- - `GET /{media-id}/comments` - Get comments on media
45
- - `GET /{comment-id}/replies` - Get replies to a comment
46
- - `POST /{comment-id}/replies` - Reply to a comment publicly
47
- - `POST /me/messages` with `comment_id` recipient - Send private reply
48
- - `DELETE /{comment-id}` - Delete a comment
49
- - `POST /{comment-id}` with `hide` parameter - Toggle visibility
50
- - Private replies can only be sent within 7 days of the comment
51
- - Only one private reply message can be sent per comment
52
-
53
- ### Use Cases
54
- - Automate responses to comments on your posts
55
- - Send personalized DMs to engaged users who comment
56
- - Moderate comments by hiding or deleting inappropriate content
57
- - Build workflows that combine public replies with private follow-ups
58
-
59
- ---
60
-
61
- ## [1.5.7] - 2025-12-02
62
-
63
- ### Fixed
64
- - **Critical: Token persistence across n8n restarts** - Long-lived tokens are now properly persisted to the database
65
- - Previously, long-lived tokens were only stored in memory cache and lost on n8n restart
66
- - After restart, the node would try to exchange an expired OAuth token, causing "Session has expired" (error code 190)
67
- - Now using n8n's `preAuthentication` system which automatically persists tokens to the database
68
-
69
- ### Changed
70
- - **Token Management Architecture Refactored (Again):**
71
- - Moved token exchange/refresh logic back to credential type using n8n's `preAuthentication` hook
72
- - Added `expirable: true` typeOption to `longLivedToken` field to enable automatic credential persistence
73
- - `preAuthentication` now handles:
74
- - Exchanging short-lived OAuth tokens for 60-day long-lived tokens
75
- - Refreshing long-lived tokens when they have less than 7 days remaining
76
- - Returning updated credentials for n8n to persist automatically
77
- - Simplified `getAccessToken()` in GenericFunctions.ts to just retrieve the persisted token
78
- - Removed in-memory token cache (no longer needed with database persistence)
79
- - Removed standalone `exchangeForLongLivedToken()` and `refreshLongLivedToken()` functions
80
-
81
- ### Technical Details
82
- - The `preAuthentication` method is called by n8n before each API request when credentials have an `expirable` field
83
- - When `preAuthentication` returns credential data, n8n automatically persists it to the database
84
- - Token lifecycle: OAuth → Exchange (60 days) → Auto-refresh (when < 7 days remaining)
85
- - Token refresh only attempted when token is at least 24 hours old (Instagram API requirement)
86
-
87
- ### Migration Notes
88
- - No action required for existing users
89
- - On first API call after upgrade, the token will be automatically migrated to the new persistence system
90
- - If you experience any issues, simply reconnect your Instagram account in the credential settings
91
-
92
- ---
93
-
94
- ## [1.5.5] - 2025-10-16
95
-
96
- ### Changed
97
- - **Token Management Architecture Refactored:**
98
- - Moved token exchange and refresh logic from credential hooks to `GenericFunctions.ts`
99
- - Removed `authenticate()` and `preAuthentication()` hooks from `InstagramOAuth2Api.credentials.ts`
100
- - Implemented new `getAccessToken()` function for centralized token management
101
- - Added in-memory token cache with validation logic
102
- - Token validation now happens at request time instead of credential initialization
103
- - Simplified credential file by removing 170+ lines of token management code
104
-
105
- - **API Request Pattern Improved:**
106
- - Updated `instagramApiRequest()` to use `getAccessToken()` for automatic token refresh
107
- - Changed from `helpers.requestOAuth2()` to `helpers.request()` with manual token injection
108
- - Added access token query parameter automatically to all API requests
109
- - Updated `getInstagramBusinessAccountId()` to use new token management system
110
-
111
- - **Token Cache Implementation:**
112
- - Added `tokenCache` Map to store validated tokens per credential
113
- - Cache keys based on client ID and partial access token
114
- - Automatic cache invalidation when token expires within 24 hours
115
- - Reduces unnecessary token refresh attempts
116
-
117
- - **Build System Updates:**
118
- - Updated npm scripts to use `@n8n/node-cli` commands
119
- - Changed `build` script to use `n8n-node build`
120
- - Added `dev`, `dev:manual`, `link`, `unlink`, `test`, and `release` scripts
121
- - Updated `lint` and `lintfix` to use `n8n-node` commands
122
- - Simplified `prepublishOnly` to use `n8n-node prerelease`
123
- - Updated ESLint from version 8.57.0 to 9.0.0
124
- - Added `@n8n/node-cli@^0.13.0` as devDependency
125
-
126
- ### Fixed
127
- - **Critical:** Token exchange/refresh now works correctly outside of credential hooks
128
- - **Critical:** Console logging now properly informs users about token updates
129
- - Token refresh logic now correctly calculates 90% lifetime threshold
130
- - Token age calculation fixed to properly determine refresh eligibility (24-hour minimum)
131
- - API requests no longer fail due to OAuth2 helper limitations
132
-
133
- ### Technical Details
134
- - Token management moved to runtime execution context (GenericFunctions)
135
- - Credential hooks removed due to n8n framework limitations with OAuth2 token updates
136
- - Token lifecycle: OAuth → Exchange (60 days) → Refresh (when ≥90% lifetime and ≥24h old)
137
- - Console logs guide users to manually update credential fields with new tokens
138
- - Cache provides performance improvement for repeated requests within short timeframes
139
-
140
- ### Developer Notes
141
- - The credential hooks approach was removed because n8n's OAuth2 system doesn't support credential updates from within hooks
142
- - New approach uses request-time token validation with manual credential updates
143
- - Users must manually copy console-logged token values into credential fields
144
- - Future improvement: Explore n8n credential update APIs for fully automated token storage
145
-
146
- ---
147
-
148
- ## [1.5.0] - 2025-10-05
149
-
150
- ### Added
151
- - **Automatic Long-Lived Token Management:**
152
- - **Automatic Token Exchange** - Short-lived tokens (1 hour) are automatically exchanged for long-lived tokens (60 days)
153
- - **Automatic Token Refresh** - Long-lived tokens are automatically refreshed before expiration
154
- - **Token Metadata Storage** - Tokens now include expiry tracking and type information
155
- - **Smart Refresh Logic** - Tokens refresh when:
156
- - At least 24 hours old
157
- - Expiring within 7 days
158
- - **Fallback Mechanisms** - If refresh fails, attempts to exchange current OAuth token
159
- - **Zero Configuration** - Works automatically after initial OAuth authentication
160
-
161
- ### Changed
162
- - **OAuth2 Credentials Enhanced:**
163
- - Added `tokenType` field to track token lifecycle
164
- - Added `tokenExpiresAt` field for expiry timestamp
165
- - Added `longLivedToken` field for secure token storage
166
- - Implemented `authenticate()` hook for automatic token management
167
- - Implemented `preAuthentication()` hook for token validation
168
-
169
- ### Fixed
170
- - **Critical:** Resolved "refreshToken is required" error after a few hours
171
- - **Critical:** Instagram API calls no longer fail due to expired short-lived tokens
172
- - Token expiry now properly handled with automatic renewal
173
-
174
- ### Technical Details
175
- - Token exchange endpoint: `https://graph.instagram.com/access_token?grant_type=ig_exchange_token`
176
- - Token refresh endpoint: `https://graph.instagram.com/refresh_access_token?grant_type=ig_refresh_token`
177
- - Short-lived tokens: 1 hour validity (OAuth default)
178
- - Long-lived tokens: 60 days validity (auto-exchanged)
179
- - Refresh window: 7 days before expiry
180
- - Minimum token age for refresh: 24 hours
181
-
182
- ---
183
-
184
- ## [1.4.0] - 2025-10-05
185
-
186
- ### Added
187
- - **Instagram Trigger Node - Dual Output System:**
188
- - **Comments Webhook** - Trigger when someone comments on your media
189
- - **Mentions Webhook** - Trigger when someone mentions you in comments or stories
190
- - **Dual Outputs** - Separate outputs for messaging events and content engagement
191
- - Output 1: Messages, Postbacks, Opt-ins
192
- - Output 2: Comments, Mentions
193
- - **Enhanced Event Data:**
194
- - Comment events: text, media ID, user info, reply detection
195
- - Mention events: media ID, mention type (comment/story), text
196
-
197
- ### Changed
198
- - **Instagram Trigger Node** now supports dual outputs for better event management
199
- - Improved webhook handler to process both messaging and content engagement events
200
- - Alphabetized event options for better UX
201
-
202
-
203
- ## [1.3.12] - 2025-10-05
204
-
205
- ### Added
206
- - **New Resource: Media** - Manage existing Instagram media objects
207
- - List Media - Get paginated list of media with customizable fields
208
- - Get Media - Retrieve detailed information about specific media
209
- - Get Media Children - Get child items from carousel albums
210
- - **New Resource: Post** - Full-featured content publishing
211
- - Create Single Post - Create image or video feed posts with advanced options
212
- - Create Carousel Post - Create multi-media carousels (2-10 items)
213
- - Create Reel - Create Instagram Reels with custom covers and audio
214
- - Publish Post - Publish created media containers
215
- - **New Resource: Story** - Instagram Stories creation
216
- - Create Story - Create and auto-publish 24-hour stories
217
- - **Advanced Tagging Features:**
218
- - User Tagging - Tag up to 20 users with precise positioning
219
- - Product Tagging - Tag products from Facebook catalog (Instagram Shopping)
220
- - Collaborator Tagging - Tag accounts as collaborators on posts
221
- - Location Tagging - Add location stickers using Facebook Page IDs
222
- - **Enhanced Media Support:**
223
- - Mixed media carousels (images + videos)
224
- - Custom video thumbnail positioning
225
- - Cover image support for reels
226
- - Audio name attribution for reels
227
- - **Comprehensive Documentation:**
228
- - POST_STORY_GUIDE.md - Complete feature guide
229
- - EXAMPLES.md - Quick reference code examples
230
- - FEATURE_SUMMARY.md - Technical implementation details
231
- - **New TypeScript Interfaces:**
232
- - IMediaObject - Media object type definitions
233
- - IPostContainer - Post container responses
234
- - IUserTag - User tag positioning
235
- - IProductTag - Product tag positioning
236
- - ICarouselChild - Carousel item structure
237
- - IPostOptions - Post creation options
238
- - IStoryOptions - Story creation options
239
-
240
- ### Changed
241
- - Enhanced Instagram.node.ts with 300+ new parameter fields
242
- - Extended execute() function with comprehensive post/story/media logic
243
- - Improved error handling for content publishing operations
244
- - Updated node description to reflect new capabilities
245
-
246
- ### Planned Features
247
- - Story mentions and replies support
248
- - Instagram comments automation
249
- - Media insights and analytics
250
- - Batch message sending operations
251
- - Enhanced error reporting with retry logic
252
-
253
- ---
254
-
255
- ## [1.2.11] - 2025-10-04
256
-
257
- ### Changed
258
- - Updated documentation to professional standards
259
- - Enhanced README with comprehensive feature descriptions
260
- - Added CONTRIBUTING.md for community guidelines
261
- - Added AUTHENTICATION_GUIDE.md for detailed setup instructions
262
- - Improved code examples and troubleshooting sections
263
-
264
- ### Fixed
265
- - LICENSE copyright information updated
266
- - CODE_OF_CONDUCT contact email corrected
267
-
268
- ---
269
-
270
- ## [1.0.1] - 2025-10-04
271
-
272
- ### Added
273
- - **New:** `Instagram Access Token API` credential type (Recommended)
274
- - Simplest authentication method
275
- - Only requires access token
276
- - Auto-discovers Instagram Business Account ID
277
- - Optional fields for webhook support
278
- - **New:** `Instagram OAuth2 API` credential type
279
- - Full OAuth2 authentication flow
280
- - Automatic token refresh
281
- - Secure user authorization
282
- - **New:** `getInstagramBusinessAccountId()` helper function
283
- - Automatically fetches Instagram Business Account ID from API
284
- - Works with all credential types
285
- - **New:** Multi-credential support in all nodes
286
- - Instagram node supports all three credential types
287
- - Instagram Trigger node supports all three credential types
288
- - **New:** Comprehensive authentication documentation
289
- - `AUTHENTICATION_GUIDE.md` with setup instructions
290
- - Migration guide for existing users
291
- - Troubleshooting tips and FAQs
292
-
293
- ### Changed
294
- - `instagramApiRequest()` now supports multiple credential types
295
- - Nodes now auto-detect which credential type is being used
296
- - Updated README with authentication options
297
-
298
- ### Deprecated
299
- - **`Instagram API` credential type** is now deprecated
300
- - Will be removed in v2.0.0
301
- - Existing workflows continue to work
302
- - Users should migrate to `Instagram Access Token API`
303
- - Deprecation notice shown in credential UI
304
-
305
- ### Fixed
306
- - Removed hardcoded credential type requirements
307
- - Improved error messages for missing credentials
308
-
309
- ## [1.0.0] - 2025-10-04
310
-
311
- ### Added
312
- - Initial release
313
- - Instagram node with 8 message operations:
314
- - Send Text Message
315
- - Send Image Message
316
- - Send Audio Message
317
- - Send Video Message
318
- - Send Button Template
319
- - Send Generic Template
320
- - Send Quick Replies
321
- - Upload Media
322
- - Instagram node with 1 user operation:
323
- - Get User Profile
324
- - Instagram Trigger node with webhook support:
325
- - Webhook verification (GET)
326
- - Webhook event handling (POST)
327
- - Signature validation
328
- - Support for messages, postbacks, and opt-ins events
329
- - Complete TypeScript type definitions
330
- - Error handling with continueOnFail support
331
- - Expression support for all parameters
332
- - Comprehensive documentation
333
-
334
- ---
335
-
336
- ## Migration Notes
337
-
338
- ### From v1.0.0 to v1.0.1
339
-
340
- **No breaking changes!** Your existing workflows will continue to work.
341
-
342
- **Recommended Action:**
343
- 1. Create new credentials using `Instagram Access Token API`
344
- 2. Update your workflows to use the new credentials (one at a time)
345
- 3. Test each workflow after migration
346
- 4. Delete old `Instagram API` credentials once migration is complete
347
-
348
- **Why migrate?**
349
- - ✅ Simpler setup (1 required field vs 4)
350
- - ✅ Auto-discovery of Instagram Business Account ID
351
- - ✅ Better aligned with n8n best practices
352
- - ✅ Future-proof (old credential type will be removed in v2.0.0)
353
-
354
- ---
355
-
356
- ## Upcoming in v2.0.0 (Planned)
357
-
358
- ### Breaking Changes
359
- - Remove deprecated `Instagram API` credential type
360
- - Users must migrate to `Instagram Access Token API` or `Instagram OAuth2 API`
361
-
362
- ### New Features (Planned)
363
- - Story mentions/replies support
364
- - Instagram comments automation
365
- - Media insights and analytics
366
- - Batch message sending
367
-
368
- ---
369
-
370
- ## Links
371
-
372
- - [npm Package](https://www.npmjs.com/package/n8n-nodes-instagram-integrations)
373
- - [GitHub Repository](https://github.com/Msameim181/n8n-nodes-instagram-integrations)
374
- - [Issue Tracker](https://github.com/Msameim181/n8n-nodes-instagram-integrations/issues)
375
-
376
- ---
377
-
378
- ## Changelog Legend
379
-
380
- - **Added** - New features
381
- - **Changed** - Changes in existing functionality
382
- - **Deprecated** - Soon-to-be removed features
383
- - **Removed** - Removed features
384
- - **Fixed** - Bug fixes
385
- - **Security** - Security improvements or vulnerability fixes
386
-
387
- ---
388
-
389
- ## Contributing
390
-
391
- See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
@@ -1,9 +0,0 @@
1
- import type { IAuthenticate, ICredentialDataDecryptedObject, ICredentialType, IDataObject, IHttpRequestHelper, INodeProperties } from 'n8n-workflow';
2
- export declare class InstagramUnifiedLoginApi implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- documentationUrl: string;
6
- properties: INodeProperties[];
7
- preAuthentication(this: IHttpRequestHelper, credentials: ICredentialDataDecryptedObject): Promise<IDataObject>;
8
- authenticate: IAuthenticate;
9
- }