Skip to content
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
24 changes: 0 additions & 24 deletions postman/threads-api.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -3343,18 +3343,6 @@
"key": "url",
"value": "https://www.threads.net/@threads/post/DCkkKl_OGb1",
"description": "This is the URL of the Threads post to be embedded. With standard access, you may embed posts from the @meta, @threads, @instagram, and @facebook accounts."
},
{
"key": "access_token",
"value": "TH|{{app_id}}|{{app_secret}}",
"description": "This is your app access token. This consists of your app's ID and secret.",
"disabled": true
},
{
"key": "access_token",
"value": "{{app_access_token}}",
"description": "This is your app access token received via the GET /oauth/access_token endpoint. See the Authorization folder for details.",
"disabled": true
}
]
}
Expand All @@ -3378,18 +3366,6 @@
"key": "url",
"value": "https://www.threads.net/@threads/post/DCkkKl_OGb1",
"description": "This is the URL of the Threads post to be embedded. With standard access, you may embed posts from the @meta, @threads, @instagram, and @facebook accounts."
},
{
"key": "access_token",
"value": "TH|{{app_id}}|{{app_secret}}",
"description": "This is your app access token. This consists of your app's ID and secret.",
"disabled": true
},
{
"key": "access_token",
"value": "{{app_access_token}}",
"description": "This is your app access token received via the GET /oauth/access_token endpoint. See the Authorization folder for details.",
"disabled": true
}
]
}
Expand Down
7 changes: 3 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ const agent = new https.Agent({
});

const GRAPH_API_BASE_URL =
'https://graph.threads.net/' +
'https://graph.threads.com/' +
(GRAPH_API_VERSION ? GRAPH_API_VERSION + '/' : '');
const AUTHORIZATION_BASE_URL = 'https://www.threads.net';
const AUTHORIZATION_BASE_URL = 'https://www.threads.com';

let initial_access_token = INITIAL_ACCESS_TOKEN;
let initial_user_id = INITIAL_USER_ID;
Expand Down Expand Up @@ -1117,8 +1117,7 @@ app.get('/oEmbed', async (req, res) => {
`oembed`,
{
url,
},
`TH|${APP_ID}|${API_SECRET}`
}
);

let html = '<p>Unable to embed</p>';
Expand Down
Loading