How to Add Social Media Icons to an Email Signature
Enhance your email signature by adding social media icons. Discover step-by-step instructions to turn every email into a powerful marketing tool.

Getting a TikTok Access Token is your first real step toward building powerful, custom applications that interact with the TikTok platform. Whether you want to display a live feed on your website, build an analytics dashboard, or create a content scheduling tool, the access token is the digital key you need. This guide will walk you through exactly what a token is, why it's necessary, and the step-by-step process to get one using TikTok’s official developer tools.
Think of a TikTok Access Token as a secure, temporary password that your application uses on behalf of a user. Instead of storing a user’s actual TikTok login details (which is a major security risk and against TikTok’s terms of service), your app receives a unique token. This token grants your app permission to perform specific actions or access certain data associated with the user's account.
A good analogy is a hotel key card. The key card grants you access to your room (specific data) for a set period (the token's lifespan), but it doesn't give you the master key to the whole hotel. Likewise, a TikTok Access Token is granted with specific permissions, called "scopes," which define exactly what your app can and cannot do.
An access token is the centerpiece of most API interactions. You need one to:
Without an access token, your application can't prove to TikTok that it has the user's permission to access their data, and your API requests will be denied.
Before you get started, make sure you have a few things in place. Going through this checklist now will save you from hitting roadblocks later.
https://your-app.com/callback works well.The process of getting an access token follows the standard OAuth 2.0 flow. It can seem complicated at first, but it breaks down into five logical steps. Let's walk through each one.
First things first, you need to tell TikTok about your application.
https://www.yourdomain.com/tiktok/callback. This must be an exact match, or the process will fail.Scopes are permissions. You need to decide what your application needs to do and request the appropriate scopes. It’s considered best practice to only request the permissions you absolutely need.
Some common scopes include:
user.info.basic: Allows you to access the user's basic profile information like display name and avatar.video.list: Allows you to retrieve a list of the user's public videos.video.publish: The big one. This scope permits your application to upload and post videos on the user's behalf.comment.read.public: Allows you to read public comments on your own posts.You’ll combine the scopes you need into a single string, separated by commas. For example, if you want to read user info and post videos, your scope string would be user.info.basic,video.publish.
Now, you need to construct a special URL that will send the user to TikTok to grant your app permission. This URL includes your app's Client Key and the scopes you're requesting.
https://www.tiktok.com/v2/auth/authorize/
client_key: Your app's Client Key from the developer portal.response_type: This must be set to code.scope: A comma-separated list of the scopes you want (e.g., user.info.basic,video.list).redirect_uri: The exact same Redirect URI you configured in Step 1.state: An optional but highly recommended unique, unguessable string to prevent CSRF attacks. TikTok will return this same value back to you.Your final URL will look something like this. You wouldn't show this raw URL to users, you'd typically have a "Connect with TikTok" button that links to it.
https://www.tiktok.com/v2/auth/authorize/?client_key=YOUR_CLIENT_KEY&response_type=code&scope=user.info.basic,video.list&redirect_uri=https://your-app.com/callback&state=UNIQUE_STATE_STRING
When a user clicks on the URL you created in Step 3, they will be taken to a standard TikTok authorization screen. The screen will clearly display your app's name and list the permissions (scopes) it is requesting. If the user agrees and clicks "Authorize," TikTok will redirect them back to the redirect_uri you specified.
Appended to this redirect URL will be two important query parameters:
code: This is a temporary authorization code. It's not the access token itself, but you'll use it to get the token.state: This will be the same unique string you sent in the original request. You should check that it matches to confirm the request is legitimate.The redirect URL will look like this:
https://your-app.com/callback?code=AUTH_CODE_FROM_TIKTOK&state=UNIQUE_STATE_STRING
This is the final step, and it must be done from your server, not from the user's browser. You take the temporary code from Step 4 and send a POST request back to TikTok's token endpoint to exchange it for a real access token.
https://open.tiktokapis.com/v2/oauth/token/
You'll need to send these parameters in the request body with a content type of application/x-www-form-urlencoded.
client_key: Your app's Client Key.client_secret: Your app's Client Secret.code: The temporary authorization code you received in the redirect.grant_type: This must be set to authorization_code.redirect_uri: The same Redirect URI from earlier steps.If the request is successful, TikTok will return a JSON response containing your access token!
{
"access_token": "act.123abc456def...",
"expires_in": 3600,
"refresh_token": "rft.789ghi012jkl...",
"refresh_expires_in": 31536000,
"open_id": "user_open_id_string",
"scope": "user.info.basic,video.list",
"token_type": "Bearer"
}
Congratulations! The value in the access_token field is what you'll use to make authenticated API calls on behalf of the user. Be sure to securely store this token and its associated refresh token in your database, linked to the user's account.
Your work isn't quite done. Access tokens don't last forever. The expires_in field in the token response tells you how many seconds the token is valid for (typically one hour).
To avoid forcing the user to log in again every hour, you use the refresh_token. A refresh token has a much longer lifespan (usually a year). When your access token expires, you can make a separate API call to the same token endpoint, but this time with a different grant_type:
grant_type to refresh_token.client_key, client_secret, and the refresh_token itself.This request will return a brand new access token without needing the user to re-authorize your app.
Getting a TikTok access token is a multi-step process that involves setting up your app, directing the user through an authorization flow, and exchanging a temporary code for a long-lived token. By following the OAuth 2.0 protocol, you can securely access user data and build exciting TikTok integrations.
While building your own integrations is powerful, managing token expirations and API connections across multiple platforms can quickly become a full-time job. At Postbase, we handle all that behind-the-scenes complexity for you. We focus on maintaining stable, reliable connections to all your accounts, so you don't have to worry about constantly re-authenticating or troubleshooting broken links. You can just connect your TikTok account once and focus on what matters most: planning and scheduling amazing content.
Enhance your email signature by adding social media icons. Discover step-by-step instructions to turn every email into a powerful marketing tool.
Learn how to add your Etsy link to Pinterest and drive traffic to your shop. Discover strategies to create converting pins and turn browsers into customers.
Grant access to your Facebook Business Manager securely. Follow our step-by-step guide to add users and assign permissions without sharing your password.
Record clear audio for Instagram Reels with this guide. Learn actionable steps to create professional-sounding audio, using just your phone or upgraded gear.
Add translations to Instagram posts and connect globally. Learn manual techniques and discover Instagram's automatic translation features in this guide.
Optimize your Facebook Business Page for growth and sales with strategic tweaks. Learn to engage your community, create captivating content, and refine strategies.
Wrestling with social media? It doesn’t have to be this hard. Plan your content, schedule posts, respond to comments, and analyze performance — all in one simple, easy-to-use tool.