I need to insert Tiktok embed based on user input. I'm using /oembed ednpoint as described on "Tiktok for Developers".
It works fine with regular links from tiktok website (i.e. https://www.tiktok.com/@devslopes/video/7093577621648248107) but when I use "Copy link" function on ios app the link is different (i.e. https://vm.tiktok.com/ZMNkTUjgB/?k=1).
Unfortunately /oembed returns 400 error for such links:
GET https://www.tiktok.com/oembed?url=https://vm.tiktok.com/ZMNkTUjgB/?k=1
HTTP 400 {"status_msg":"Something went wrong","message":"Something went worong","code":400}
I tried to strip /?k=1 part from link but it gave nothing.
Is there anything I can do in order to get response for links like that? Thanks