You Know Stackposts?

#1 Social Media Management & Analysis Platform

TikTok Auto Post

Installation Api Tiktok

Estimated reading: 5 minutes

Install license

Go to Admin Dashboard/Plugins

Click Install

Enter your Purchase code at the box

Installation Api Domain

Open port 8008

//For Aapanel

//For Plesk

//For WHM


cd /root 

Please see instructions below

To install CSF, perform the following steps:
 
Log in to your server as the root user via SSH.
 
Run the cd /root command to change to the root directory.
cd /root 
 
Run the following command to download CSF:
wget https://download.configserver.com/csf.tgz
 
Run the command to decompress the downloaded file.
tar -xzf csf.tgz
Run the command to change directories.
cd csf
To begin the CSF installation, run the 
./install.cpanel.sh command.nnn 

 

 

Installation Api Domain for Ubuntu

 

Download tiktok_server.zip file

Create api domain and connect them to your Server IP Address

Ex: tiktokapi.yourdomain.com

Please set up SSL for api domain 

Api Domain Configure

For Nginx

Please insert code below into your api Domain

         location / {
              proxy_pass http://localhost:8008; #whatever port your app runs on
              proxy_http_version 1.1;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection 'upgrade';
              proxy_set_header Host $host;
              proxy_cache_bypass $http_upgrade;
          }

For Apache

Insert code below into your api Domain: Please check that you have inserted the code at 2 places as instructed

  <Location />
       ProxyPass http://127.0.0.1:8008/
       ProxyPassReverse http://127.0.0.1:8008/
  </Location> 

 

1/ Create folder “tiktokserver” on folder “/root”

Create a directory in the root folder to upload “tiktok_server.zip”.

To ensure the safety and security of the system, please place the file in the root directory. 

2/ Go to folder “tiktokserver” and then upload & unzip file “tiktok_server.zip”

 

3/ Config database on file config.js

Important: Set up a common database with Stackposts Main Script, Do not create another database for the module.

 

4/ Set permissions 775 for folder “node_modules/.bin”

Access Terminal

chmod -R 0755 /root/tiktokserver/node_modules/.bin/
chown root:root .

5/ Install Node JS 16 or Higher

//For Ubuntu

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install nodejs


6/ Install Playwright & Browser

npx playwright install

7/ Install Libraries

//For Ubuntu

apt-get install libasound2 libdbus-glib-1-2 libgtk-3-dev libevent-2.1-7

8/ Config cronjob

Please create Cron according to the instructions

Cron: Once/minute:

sh -c 'cd /root/tiktokserver && node app'

/root/tiktok_server: is the path to the tiktok_server.zip installation directory

9/ Activate tiktok server

Run below command to activate tiktok server

cd /root/tiktokserver && node app

Check the working status of the API domain

Please check the link Please check the link https://tiktokapi.yourdomain.com/

Cannot GET /

Tiktok API Configuration & Check Qrcode

Api domain set up correctly Correct setting

https://tiktokapi.yourdomain.com/

Wrong setting

https://tiktokapi.yourdomain.com

http://tiktokapi.yourdomain.com/

tiktokapi.yourdomain.com

and more….

 

Check qrcode worked

https://yourdomain.com/tiktok_profiles/oauth

 

You can also set up via ip without running through api domain

Check the working status of the API domain

Please check the link Please check the link http://ip:8008/

Cannot GET /

 

Tiktok API Configuration & Check Qrcode

Api set up correctly Correct setting

http://ip:8008/

 

Wrong setting

https://ip:8008

https://ip:8008/

ip:8008

and more….

 

Check qrcode worked

https://yourdomain.com/tiktok_profiles/oauth

 

 

Installation Api server for Centos

With CentOS server, you can only set up Tiktok Api via IP, not via domain

1/ Create folder “tiktokserver” on folder “/root”

2/ Go to folder “tiktokserver” and then upload & unzip file “tiktok_server.zip”

3. Config database on file config.js

Important: Set up a common database with Stackposts Main Script, Do not create another database for the module.

4. Set permissions 775 for folder “node_modules/.bin”

Access Terminal

chmod -R 0755 /root/tiktokserver/node_modules/.bin/
chown root:root .

5/ Install Node JS 16 or Higher

Access Terminal

//For Centos

yum install -y gcc-c++ make 
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -
sudo yum install nodejs

6/ Install Playwright & Browser

npx playwright install

7/ Install Libraries

yum install alsa-lib-devel dbus-glib-devel gtk3-devel

8/ Config cronjob

Please create Cron according to the instructions

Cron: Once/minute:

* * * * * sh -c 'cd /root/tiktokserver && node app'

/root/tiktok_server: is the path to the tiktok_server.zip installation directory

Please see the instructions below, instead of setting cronj as above

Select insert on the keyboard to enter cronjob

Select Esc and run the comment “: x” to save

9/ Activate tiktok server

Run below command to activate tiktok server

/root/tiktok_server: is the path to the tiktok_server.zip installation directory

cd /root/tiktokserver && node app

 

Check the working status of the API domain

Please check the link Please check the link http://ip:8008/

Cannot GET /

 

Tiktok API Configuration & Check Qrcode

Api set up correctly Correct setting

http://ip:8008/

 

Wrong setting

https://ip:8008

https://ip:8008/

ip:8008

and more….

 

Check qrcode worked

http://ip:8008/tiktok_profiles/oauth

 

 

 

 

Share this Doc

Installation Api Tiktok

Or copy link

CONTENTS
Antimanual

Ask our AI support assistant your questions about our platform, features, and services.

You are offline
Chatbot Avatar
What can I help you with?