> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # ListFollowedChannels # Package: accounts # Namespace: LoyaltySocialMedia # Method link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/social-media/list-followed-channels.md ## Permission Scopes: Read Loyalty: SCOPE.DC-LOYALTY.READ-LOYALTY ## Introduction Retrieves a list of social media channels followed by the account. The list is ordered by creation date. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). --- ## REST API ### Schema ``` Method: listFollowedChannels Description: Retrieves a list of social media channels followed by the account. The list is ordered by creation date. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). URL: https://www.wixapis.com/v1/followed-channels Method: GET Return type: ListFollowedChannelsResponse - name: followedChannels | type: array | description: List of followed social media channels. - name: id | type: string | description: Followed social media channel GUID. - name: accountId | type: string | description: GUID of the account that has followed a social media channel. - name: channel | type: Type | description: Followed social media channel. - enum: - FACEBOOK: Facebook social media channel. - INSTAGRAM: Instagram social media channel. - LINKEDIN: LinkedIn social media channel. - X: X social media channel. - TIKTOK: TikTok social media channel. - name: createdDate | type: string | description: Date and time when an entity for following a social media channel was created. ``` ### Examples ### List followed social media channels ```curl curl -X POST \ 'https://www.wixapis.com/loyalty-social-media/v1/followed-channels' \ -H 'Authorization: ' \ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.accounts.LoyaltySocialMedia.listFollowedChannels() Description: Retrieves a list of social media channels followed by the account. The list is ordered by creation date. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). Return type: PROMISE - name: followedChannels | type: array | description: List of followed social media channels. - name: _id | type: string | description: Followed social media channel GUID. - name: accountId | type: string | description: GUID of the account that has followed a social media channel. - name: channel | type: Type | description: Followed social media channel. - enum: - FACEBOOK: Facebook social media channel. - INSTAGRAM: Instagram social media channel. - LINKEDIN: LinkedIn social media channel. - X: X social media channel. - TIKTOK: TikTok social media channel. - name: _createdDate | type: Date | description: Date and time when an entity for following a social media channel was created. ``` ### Examples ### listFollowedChannels ```javascript import { socialMedia } from '@wix/loyalty'; async function listFollowedChannels() { const response = await socialMedia.listFollowedChannels(); }; ``` ### listFollowedChannels (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { socialMedia } from '@wix/loyalty'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { socialMedia }, // Include the auth strategy and host as relevant }); async function listFollowedChannels() { const response = await myWixClient.socialMedia.listFollowedChannels(); }; ``` ---