@volter/twin-instagram 0.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.
- package/LICENSE +202 -0
- package/README.md +56 -0
- package/dist/client/instagram-mirror.bundle.js +321 -0
- package/dist/client/instagram-mirror.d.ts +58 -0
- package/dist/client/instagram-mirror.js +257 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +30 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.js +71 -0
- package/dist/src/instagram-budget.d.ts +44 -0
- package/dist/src/instagram-budget.js +112 -0
- package/dist/src/instagram-capabilities.d.ts +4 -0
- package/dist/src/instagram-capabilities.js +1249 -0
- package/dist/src/instagram-conformance.d.ts +8 -0
- package/dist/src/instagram-conformance.js +44 -0
- package/dist/src/instagram-connector.d.ts +79 -0
- package/dist/src/instagram-connector.js +437 -0
- package/dist/src/instagram-errors.d.ts +33 -0
- package/dist/src/instagram-errors.js +73 -0
- package/dist/src/instagram-media.d.ts +134 -0
- package/dist/src/instagram-media.js +388 -0
- package/dist/src/instagram-mirror-ui.d.ts +57 -0
- package/dist/src/instagram-mirror-ui.js +158 -0
- package/dist/src/instagram-server.d.ts +14 -0
- package/dist/src/instagram-server.js +146 -0
- package/dist/src/instagram-twin.d.ts +52 -0
- package/dist/src/instagram-twin.js +884 -0
- package/package.json +57 -0
- package/src/cli.ts +28 -0
- package/src/index.ts +117 -0
- package/src/instagram-budget.ts +130 -0
- package/src/instagram-capabilities.ts +1191 -0
- package/src/instagram-conformance.ts +58 -0
- package/src/instagram-connector.ts +400 -0
- package/src/instagram-errors.ts +89 -0
- package/src/instagram-media.ts +403 -0
- package/src/instagram-mirror-ui.ts +173 -0
- package/src/instagram-server.ts +146 -0
- package/src/instagram-twin.ts +859 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# `@volter/twin-instagram` — a professional account's Reels on Instagram
|
|
2
|
+
|
|
3
|
+
An Instagram **professional account** and its **Reels**: the Graph API's content publishing flow (a
|
|
4
|
+
resumable Reels container, the upload to `rupload.facebook.com`, the container's `status_code`,
|
|
5
|
+
`media_publish`), the account and media nodes, the publishing limit, and an instagram.com-style
|
|
6
|
+
profile to preview each Reel as instagram.com shows it before a deploy sends it — offline, against
|
|
7
|
+
local state.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bun packages/twin/instagram/src/cli.ts serve --root /tmp/world # the Graph API and the upload host
|
|
11
|
+
bun packages/twin/instagram/src/cli.ts mirror --root /tmp/world # the profile, on the same state
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Paths take an optional Graph version (the changelog's table, judged at the World's instant: `/v21.0/`
|
|
15
|
+
… `/v26.0/` on 2026-09-27; an expired one is served as the oldest usable, as Meta defaults it). A
|
|
16
|
+
token rides `Authorization: Bearer|OAuth`, or `access_token`, and needs every permission of its
|
|
17
|
+
reference's Requirements row (a container: `instagram_basic` + `instagram_content_publish` +
|
|
18
|
+
`pages_read_engagement`; a publish: `instagram_basic` + `instagram_content_publish`; or the Instagram
|
|
19
|
+
Login `instagram_business_*` pair — except that a resumable upload session and its rupload POSTs are
|
|
20
|
+
"Only for apps that have implemented Facebook Login for Business").
|
|
21
|
+
|
|
22
|
+
## Coverage
|
|
23
|
+
|
|
24
|
+
| Area | What the twin serves |
|
|
25
|
+
|---|---|
|
|
26
|
+
| `GET /{ig-user-id}` · `GET /me` | The account's fields as asked (`id` alone by default): `username`, `name`, `biography`, `website`, `followers_count`, `follows_count`, `media_count` (the live media the twin holds), `profile_picture_url`, `has_profile_pic`. A field the node lacks is `(#100) Tried accessing nonexisting field`; a documented one the twin does not model is refused by name. Only the token's own account is readable. |
|
|
27
|
+
| `POST /{ig-user-id}/media` | A **Reels container** for a resumable upload: `media_type=REELS`, `upload_type=resumable`, `caption` (2200 characters, 30 hashtags, 20 @ tags), `share_to_feed`, `cover_url`, `thumb_offset`, `audio_name`, `is_ai_generated` — JSON or form-encoded. Answers `{id, uri}`, the uri on the upload host (under the twin's own base when served). 400 containers per rolling 24 hours. Images, carousels, stories, `VIDEO` and `video_url` uploads, collaborators, tags, locations, trial params and product tags are refused by name as 422 `[twin gap]`. |
|
|
28
|
+
| `POST rupload.facebook.com/ig-api-upload/{version}/{container}` | The bytes, with the same token as the Graph API (`Authorization: OAuth <token>`, the host's documented scheme; Bearer and `access_token` also work — no page says the host refuses them), `offset` and `file_size`: one POST, or pieces, each POST's `offset` the first byte it carries. The completing POST answers the documented `{"success":true,"message":"Upload successful."}`; a failure the documented `debug_info` envelope (`unauthorized user request` for a missing, unknown or under-permitted token). **The twin's own shapes, where the docs give none**: a piece answers `{offset, file_size}` (no `success`), a `GET` of the URL answers `file_offset` as the Graph Resumable Upload guide does for graph.facebook.com (`instagram.upload.offset_discovery`), and a declared `file_size` over 300 MB is refused before any byte is staged. `file_url` uploads are refused by name. |
|
|
29
|
+
| `GET /{container-id}?fields=status_code,status` | `IN_PROGRESS` until five seconds of world time after the last byte, then `FINISHED` — or `ERROR` with the subcode on `status` when the file is outside the Reels specification (MOV/MP4 with the moov atom first, H.264 or HEVC, 23-60 FPS, AAC up to 48 kHz and 2 channels, at most 1920 columns, aspect 0.01:1 to 10:1, 3 s to 15 min, 300 MB, an average bitrate within 25 Mbps video + 128 kbps audio: `2207026`; a `thumb_offset` past the end, unless a `cover_url` is set, which Meta uses instead: `2207057`; edit lists, GOP structure and chroma subsampling are not read — `instagram.containers.edit_lists`); `PUBLISHED` once published; `EXPIRED` 24 hours after creation. A status is a fold of stored instants — **a frozen World clock keeps a Reel IN_PROGRESS**: advance it (`volter world clock advance 5s`). |
|
|
30
|
+
| `POST /{ig-user-id}/media_publish` | `creation_id` → `{id}` of the new media. Not ready is `9007/2207027`, a failed container `-1/2207032`, an expired one `-2/2207020`, an unknown, foreign or already-published one `24/2207008`; 50 API-published posts in a moving 24 hours (`9/2207042` after) — counted from the media published through this twin, a deleted one included, a Reel pulled by a refresh not (it may have been posted in the app). |
|
|
31
|
+
| `GET /{ig-user-id}/media` · `GET /{ig-media-id}` · `DELETE /{ig-media-id}` | The media list newest first (`limit`, `after` cursors and a `next` link), the media node's fields (`media_type` VIDEO, `media_product_type` REELS, `caption`, `timestamp`, `shortcode`, the `/reel/` `permalink`, `media_url`, `thumbnail_url`, `owner`, `username`, `is_shared_to_feed`, counts), and a delete (`instagram_manage_contents`). |
|
|
32
|
+
| bytes | `media_url` serves the uploaded Reel under the twin's base at the CDN's path shape through the kernel's ranged reads: HTTP Range 206/416, an open-ended range capped at 8 MiB, a whole file streamed. A Reel with a `cover_url` answers it as `thumbnail_url` (the twin fetches nothing); one without answers a stand-in poster, since the twin decodes no frames. A seeded profile picture is served the same way. |
|
|
33
|
+
| `GET /{ig-user-id}/content_publishing_limit` | `{data:[{quota_usage}]}` (the same API-published count), `config` `{quota_total: 50, quota_duration: 86400}` when asked — or for the reference example's `rate_limit_settings` — and `since` no older than 24 hours. |
|
|
34
|
+
| errors | Meta's envelope `{error:{message, type, code, error_subcode, is_transient, error_user_title, error_user_msg, fbtrace_id}}` with the Error Codes reference's codes; an unknown node is `Unsupported get request` (100/33); 405 under `--read-only`. |
|
|
35
|
+
| connector | **Perform**: a Reel crosses as the container (kept from the moment it opens), the bytes to the answered rupload `uri` in 8 MiB chunks (the kernel gives a request 30 s) with the confirmed offset kept after each — a credentialed absolute URL on the host the descriptor declares (plain https, no port), or, when a twin stands as the vendor, the anchored `/ig-api-upload/…` path under the root — then `status_code` at 0, 60 and 120 s (Meta: once a minute; hard cap 120 s, then a retryable failure that keeps the container), then `media_publish` and the permalink for the receipt. A retry resumes the upload at the kept offset (a kept target is re-checked against what the vendor could have answered) or publishes the kept container; a resumed POST the host refuses with 400 is checked against the container's status — FINISHED (or ERROR / PUBLISHED): carry on; IN_PROGRESS (Meta may be processing the whole file): wait on it, and if the wait ends IN_PROGRESS the next retry opens a new container; EXPIRED: a new container next retry (a 400 for another cause, such as a bad credential, costs one container per two retries); a 429 keeps it. An `ERROR` naming the file (2207026, 2207057) refuses the entry; any other `ERROR` fails retryably with a fresh container next time. A container that reads `PUBLISHED` though its answer was lost lands the one Reel with this caption (every `@` ignored, as Meta strips them) since the container opened on the vendor's clock (its 24-hour lifetime is counted on the local one); a caption-less Reel or no single match refuses the entry, and an unreadable media list fails retryably — never a second publish, never a blocked queue. A delete crosses as `DELETE`. **Refresh**: `/me` and the media list. Both charge the pack's rate budget, one ledger per sealed credential. |
|
|
36
|
+
| mirror | instagram.com over the twin's own Graph API: log in with the username and the twin-issued token in place of a password; the profile (avatar, username, the counts it holds, name, bio, website), the Reels grid (9:16 tiles with a play glyph, each the Reel's own first frame or its cover), and a full-height Reel viewer (playing, muted, looped) with the caption and username. |
|
|
37
|
+
| `/_twin/*` | Twin-only control plane: seed an account (`id`, `username`, profile fields, a base64 profile picture) and an access token with its permissions — held only as its SHA-256, never in the clear. |
|
|
38
|
+
|
|
39
|
+
`src/instagram-capabilities.ts` is the denominator: **116 capabilities, 71 done**. What is not
|
|
40
|
+
modelled is enumerated there as a todo — image posts, carousels, stories, hosted `video_url` uploads,
|
|
41
|
+
tags and collaborators, comments, insights, hashtag search, business discovery, webhooks, the
|
|
42
|
+
Instagram Login token flow, and the composer on the mirror — not omitted.
|
|
43
|
+
|
|
44
|
+
**The sealed credential.** The Graph API and the upload host take the same token, and both take the
|
|
45
|
+
`OAuth` scheme (the Graph API's Resumable Upload guide sends `Authorization: OAuth` to
|
|
46
|
+
graph.facebook.com), so seal it as `{"headers":{"authorization":"OAuth <token>"}}`. A bare token
|
|
47
|
+
seals as `Bearer`: a twin standing as the vendor takes it on its upload route, but Meta documents only
|
|
48
|
+
`OAuth` for rupload.facebook.com.
|
|
49
|
+
|
|
50
|
+
The rate budget (`src/instagram-budget.ts`): 50 publishes and 400 containers per 24 hours, spread
|
|
51
|
+
over the kernel's one-hour window and rounded down; a burst that admits one perform of a 300 MB Reel.
|
|
52
|
+
|
|
53
|
+
**Routing the credential.** The kernel sends the sealed credential to an absolute URL on any exact
|
|
54
|
+
`host` rule of this descriptor, whatever its port — so graph.instagram.com and
|
|
55
|
+
scontent.cdninstagram.com are eligible as well as rupload.facebook.com. The connector sends an absolute
|
|
56
|
+
URL only to rupload.facebook.com over plain https.
|