Salesforce B2C Commerce 24.7 > Developing Your Site > Third-Party Applications > TikTok for Business Integration
Clone the TiKTok for Business Repository
TikTok for Business requires that you have a SiteGenesis or Storefront-Reference-Architecture (SFRA).
To clone the repository, you need access to the Salesforce CommerceCloud
repositories on GitHub. If you donβt have a GitHub account, see Salesforce Commerce Cloud GitHub Repositories and
Access.
- Sign in to Salesforce CommerceCloud GitHub.
-
To copy the repository to your local system, search for the Social Channels Integrations
repository, and click Clone.
To integrate with TikTok for Business, you need two cartridges:
bm_socialchannels
: This cartridge contains the Business Manager controllers and UI logic for the Business Manager extension that a site administrator can use to integrate with different social channels like TikTok, and Snapchat.int_tiktok
: This cartridge contains the logic to integrate with TikTok. It includes the service definitions, logic to handle the customer object that stores the TikTok details, and the job that syncs the B2C Commerce product catalog with TikTok.
-
Upload the cartridges to your sandbox and import the metadata. Follow the instructions
in the README file from the social_channels folder.
Note: Always install the cartridge in a staging instance, test the setup process with the staging Instance Id, orgId, and catalog. Then, replicate the code to production, change the instance Id, orgId in the setup process. Point staging and production instances to different catalogs, and pixels on TikTok. You can use the same business center account and TikTok Ad account.
-
Upload both
bm_socialchannels
andint_tiktok
cartridges to your active code version. -
Add
bm_socialchannels
cartridge to the Business Manager cartridge path.- In Business Manager, select Administration > Sites > Manage Sites.
- On the Storefront Sites page, click Business Manager.
-
Add
int_socialchannels
to the cartridge path. - Click Apply
-
Add
int_tiktok
cartridge to the Business Manager cartridge path.- In Business Manager, select Administration > Sites > Manage Sites.
- From the list of sites, select your site.
- Click the Settingstab.
-
Add
int_tiktok
to the cartridge path. -
Click Apply
The export catalog job directly calls the TikTok API.
-
Zip the contents of the data folder and import the zip file.
- In Business Manager, select Administration > Site Development > Site Import & Export
- Click Choose File.
- Select the zip file and click Import.
- Give permission to the TikTok for Business Manager menu to the required users.
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.