diff --git a/postman/threads-api.postman_collection.json b/postman/threads-api.postman_collection.json index 07cc532..e601925 100644 --- a/postman/threads-api.postman_collection.json +++ b/postman/threads-api.postman_collection.json @@ -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 } ] } @@ -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 } ] } diff --git a/src/index.js b/src/index.js index 29836bb..12f4a9e 100644 --- a/src/index.js +++ b/src/index.js @@ -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; @@ -1117,8 +1117,7 @@ app.get('/oEmbed', async (req, res) => { `oembed`, { url, - }, - `TH|${APP_ID}|${API_SECRET}` + } ); let html = '

Unable to embed

';