The method of the previous article has expired, the following is the new version!
background
You may have found that in some apps, you cannot directly open the link of Douyin, and even the official sharing link of Douyin cannot directly wake up the app when you open it in a browser. We need to click manually. If we want to directly pull up Douyin on our own website and other promotions, we can follow the steps below.
New method June 2023
The new method is a little more complicated than before, please be sure to do it step by step!
Computer browser opens the home page
To open the user page, you need to log in to another account to access the user homepage that needs to be generated. You will see a page like this:
Open inspect element network window
set filter
Click Fetch/XHR, enter device_platform in the filter
Click private message
Click the private message button on the webpage, and about 5 request records appear below
Find the other party's Uid
Click on the request line and select the Preview tab.
One of the requests will contain the user's nickname information, click on the small triangle in front of the request json data
(As shown in the figure below, click the small triangle in front of the data node, and then click the small triangle in front of 0)
Find the uid and copy it
splice address
Copy the uid and paste it into the URL below
snssdk1128://user/profile/【UID粘贴在这里】?refer=web
For example, pasting is:
snssdk1128://user/profile/97952757558?refer=web
Assemble HTML
The above link can already launch the Douyin APP when accessed in a browser. If you want users to open the webpage to automatically open Douyin, you can add a JS automatic jump code.
<script>window.location.href = "snssdk1128://user/profile/97952757558?refer=web"</script>
In this way, the webpage automatically jumps to Douyin