Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion connectors/meta/instagram-playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,12 +1039,23 @@ const fetchWebInfo = async () => {
id: liker.id || liker.pk || "",
}));

return {
const post = {
img_url: imgUrl,
caption,
num_of_likes: numOfLikes,
who_liked: whoLiked,
};

// Instagram v1 feed media nodes carry the capture time as `taken_at`
// (unix seconds). Only emit when present; never fabricate.
const takenAtRaw = node.taken_at ?? node.taken_at_timestamp;
if (typeof takenAtRaw === "number" && Number.isFinite(takenAtRaw)) {
// Values are in seconds; ms-scale values (>1e12) are passed through as-is.
const takenAtMs = takenAtRaw > 1e12 ? takenAtRaw : takenAtRaw * 1000;
post.taken_at = new Date(takenAtMs).toISOString();
}

return post;
});

if (wantsProfile) {
Expand Down
1 change: 1 addition & 0 deletions connectors/meta/schemas/instagram.posts.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"img_url": { "type": "string" },
"caption": { "type": "string" },
"num_of_likes": { "type": "number" },
"taken_at": { "type": "string" },
"who_liked": {
"type": "array",
"items": {
Expand Down
Loading