TikTok API Access Tokens and Login Dialog Implementation

Поделиться
HTML-код
  • Опубликовано: 26 июн 2024
  • In this video we go over how to implement the login dialog with the TikTok api so you can allow users to login to your app with TikTok. We also go over how to generate access tokens so you can make API calls on users behalf to do things like get users profile informations, get users insights, post content to the users TikTok profile, and more!
    ↯↯↯↯
    Code on GitHub ⇝ github.com/jstolpe/tiktok-api...
    Wiki on GitHub ⇝ github.com/jstolpe/tiktok-api...
    TikTok Docs ⇝ developers.tiktok.com/doc/ove...
    RUclips Playlist ⇝ • Create an App for the ...
    Blog Code on GitHub ⇝ github.com/jstolpe/blog_code
    --
    Discord ⇝ / discord
    TikTok ⇝ / justinstolpe
    GitHub ⇝ github.com/jstolpe/
    Instagram ⇝ / justinstolpe
    Twitter ⇝ / justin_stolpe
    LinkedIn ⇝ / justin-stolpe-3bb05426
    Reddit ⇝ / jstolpe
    Twitch ⇝ / jstolpe
    Facebook ⇝ / stolpejustin
    Website ⇝ justinstolpe.com
    SoundCloud ⇝ / justin-stolpe
    --
    Chapters
    0:00 Intro
    0:17 Overview/Demo
    0:52 TikTok API App
    1:45 Add/Configure Login Kit
    3:09 Sending User to TikTok Login DIalog
    8:27 Get User Access Tokens with the Code
    9:50 Refreshing Token
    11:20 Revoking Access Tokens
    12:15 Client Access Tokens
    13:12 Manually Removing Authorized Apps from Your TikTok Account
    14:25 Recap/Outro
    --
    #programming #developer #coding #tiktok #api

Комментарии • 23

  • @kdtechniquesofficial6153
    @kdtechniquesofficial6153 2 месяца назад +1

    your content intro is so unique. Keep up the good work. ❤❤❤

  • @edphonez
    @edphonez 3 месяца назад

    this is fantastic.. can't wait to try all of this.. thank you.

  • @rebricks
    @rebricks 4 месяца назад +1

    Hey, thanks so much for doing this. Do you think you could do a tutorial on actually getting the site up? I've done a website with github pages before, but I've never done any PHP before, just Python.

  • @codxsum41xnfs
    @codxsum41xnfs 4 месяца назад +1

    This video is helping me out a ton thank you!
    What I am not seeing in the video is the actual user logging into tiktok, I see as a user granting access to bubbles dev all you have to do is select the scopes to allow bubbles dev to use. Is there a step skipped there?

    • @justinstolpe
      @justinstolpe  4 месяца назад

      All the scopes requested should be visible when the user has to authenticate with your app so I am not sure what is missing.

  • @peterk5384
    @peterk5384 3 месяца назад +1

    Hey Justin, thanks for the video. I do still have one question that I can't seem to find an answer for.
    So I'm interested in using the API to grab user insights for analytics for a personal project, however I don't have a webite, or domain or anything. This means I can't really fill out Terms of Service URL and Privacy Policy URL fields on the page where you request access... Does this mean I can't really test the API's features until I actually deploy a website and make policies?

    • @justinstolpe
      @justinstolpe  2 месяца назад

      I would just put in placeholder urls and that should bypass the ToS and Privacy URL issues.

  • @tangoember
    @tangoember Месяц назад

    These videos are really helpful! I'm confused on some basics regarding app approval order-of-operations. Can I implement the steps in this video while in Staging? I did submit the app for approval, but the response was: "Must have a complete app before submitting." At this point, just trying to get a Hello World login working. Thanks again!

    • @justinstolpe
      @justinstolpe  Месяц назад +1

      Unfortunately even to test you need app approval so you can't even get a hello world app setup and working without approval :(. Hoping they make the api more developer friendly in the future!

    • @tangoember
      @tangoember Месяц назад

      @@justinstolpe Yeah, long story short, my mistake was filling out the standard app approval form, rather than the Integration Assessment for Unreleased App form. They approved that and my basic API calls are now working (yay!). Thanks again for your help-- now that I've graduated from this video, I expect you'll see more from me further on in the playlist.

  • @preciousegwuenu2938
    @preciousegwuenu2938 Месяц назад

    Hello, thanks for the video. To use the tiktok api, they said i need terms of service url and privacy policy url. I've not created my website yet. will i have to set my website up before i apply to get the tiktok api?

    • @justinstolpe
      @justinstolpe  Месяц назад +1

      yeah unfortunately currently the only way to use the API is to get it approved and in production

  • @user-eg5gy6wf2p
    @user-eg5gy6wf2p 3 месяца назад

    Hello, I looked for TikTok-related documents, but I couldn't find the content, so I'd like to ask a question. If one app is registered and the URL is approved, can one URL only receive one Client secret key? The reason I am asking this question is because I am curious about whether multiple users can upload through a web URL after registering one app.

    • @justinstolpe
      @justinstolpe  2 месяца назад

      each user needs to login and authorize your application which allows you to get a user access token for them which is what you use to talk to the api on their behalf

  • @fdokali
    @fdokali 3 месяца назад

    can i folow tik tok user on using api key

  • @JohnJohn-tn3lc
    @JohnJohn-tn3lc 3 месяца назад

    Can you test with localhost after getting approved?

    • @arwahz1019
      @arwahz1019 2 месяца назад

      Did you know the answer?

    • @justinstolpe
      @justinstolpe  2 месяца назад

      Not for me. They required an actual domain which is annoying.

  • @user-nq3ge7mg5k
    @user-nq3ge7mg5k 4 месяца назад

    Your github repository so confuses me, where is your login page code

    • @justinstolpe
      @justinstolpe  4 месяца назад

      Front end login code is here github.com/jstolpe/blog_code/blob/master/tiktokapi/login.php

  • @_LeMinhThuy
    @_LeMinhThuy 5 месяцев назад +1

    hi guy, my app's status is "Status" is "Under revie" and i usualy get error:
    If you're a developer, correct the following and try again:
    redirect_uri
    can you have me?

    • @justinstolpe
      @justinstolpe  5 месяцев назад +1

      Until you get it reviewed and the status is updated to "Live in Production", you won't be able to test anything.