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,