From 043355b161c943a9807723cba2306f3361bf0eda Mon Sep 17 00:00:00 2001 From: Gavin Canon-Phratsachack <37220586+gncnpk@users.noreply.github.com> Date: Thu, 28 Aug 2025 21:20:55 -0500 Subject: [PATCH] Update fetchPageInformation to include name field --- .../src/integrations/social/threads.provider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts b/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts index b4a9a2f0c..3e7bd3a9c 100644 --- a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts +++ b/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts @@ -147,15 +147,15 @@ export class ThreadsProvider extends SocialAbstract implements SocialProvider { } async fetchPageInformation(accessToken: string) { - const { id, username, threads_profile_picture_url, access_token } = await ( + const { id, name, username, threads_profile_picture_url, access_token } = await ( await this.fetch( - `https://graph.threads.net/v1.0/me?fields=id,username,threads_profile_picture_url&access_token=${accessToken}` + `https://graph.threads.net/v1.0/me?fields=id,name,username,threads_profile_picture_url&access_token=${accessToken}` ) ).json(); return { id, - name: username, + name, access_token, picture: { data: { url: threads_profile_picture_url } }, username,