To allow visitors to follow a Truth Social user directly from your website, use the following snippet:
<div data-truth-social-follow-button data-username="USERNAME"></div>
<script async src="https://embed.truthsocial.com/embed.js"></script>
Customizing the Follow Button
To make the follow button specific to a particular user, replace USERNAME in the data-username attribute with the Truth Social username of the account you want users to follow. For example, if the username is @ExampleUser, the code would look like this:
<div data-truth-social-follow-button data-username="ExampleUser"></div>
<script async src="https://embed.truthsocial.com/embed.js"></script>
Instructions
- Copy the code snippet above.
- Replace USERNAME in the data-username attribute with the Truth Social username of the account.
- Paste the updated code into your website's HTML where you want the follow button to appear.
- Save and refresh your website to ensure the button displays correctly.
- Once added, visitors can click the button to follow the specified user on Truth Social seamlessly.