Error 20002 on Video Query function in TikTok's Login Kit API - tiktok

I noticed that there's very few documentation about error handling on TikTok's login kit, so here's my problem:
I'm using the Video Query function, but i'm getting a error 20002 for a certain user
Here's a screenshot
The access token is brand new, the video is online and public but nothing works..

Related

Instagram Basic Display returns media url with Bad Url Timestamp message

Integrated the Instagram Basic display API with my website. It was working fine. From last few days some of the media url throws error code 403 with the message Bad Url Timestamp(these media were working fine earlier). I have tried refreshing the access token and creating a new one but it was not of any help. Not all the media but few of them are giving this error.
The url which is giving error
https://scontent-lht6-1.cdninstagram.com/v/t51.2885-15/128209372_3881072401959620_4985839256926707810_n.jpg?_nc_cat=108&ccb=2&_nc_sid=8ae9d6&_nc_ohc=KduPs8x3j9QAX944ddk&_nc_ht=scontent-lht6-1.cdninstagram.com&oh=3917991f8e3aaffbcf5f3017a9d78f26&oe=6002114
Can anyone help? TIA!
Instagram Basic display API have been updated. We need to stop using old API and switch to use new Instagram Basic display API.
Please refer these links:
https://embedsocial.com/blog/instagram-api-changes-2020/
https://www.instagram.com/developer/

Youtube Data API - How to avoid Google OAuth redirect URL authorization

Requirement: I am trying to upload videos to my Youtube channel through Youtube Data API for Java. The request is sent from a war file hosted on tomcat container.My application is not for external users and I only use it to upload my own generated videos. With the help of the api documentation and sample youtube code snippets, I have successfully managed to post video on youtube.
Problem: The issue is that whenever I try to run the code, I get prompted for
Please open the following address in your browser:
https://accounts.google.com/o/oauth2/auth?client_id=&redirect_uri=http://localhost:8080/Callback&response_type=code&scope=https://www.googleapis.com/auth/youtube.upload
Since I run this code on a remote server, it is not possible for me to always open this URL on the browser. Since I have registered my web app in Google Console, and got a pair of Client ID and Secret and a JSON file, so Youtube must allow me to publish videos by default to atleast my channel, isin't it?
I have used the Auth.java file(provided in youtube java code samples) and the following code is where this thing happens.
// Authorize.
return new AuthorizationCodeInstalledApp(flow, localReceiver).authorize("user#.com");
LocalServerReceiver localReceiver = new LocalServerReceiver.Builder().setPort(8080).build();
Please help here as this is really eating up a lot of my development time.
You should only need to authenticate your code once. When your code is authenticated you get a refresh token back. the refresh token will then allow you to get a new access token the next time your code runs.
There is no service account authentication for the YouTube api. Your code has to be authenticated by you the first time in order to get that refresh token.
I am not a java programmer but from a quick check of the documentation it looks quite similar to what I do in.net. You need to create a datastore to to store the first refreshh token then you should be able to run your code in the future with out needing to authenticate it again.

Undocumented error with LinkedIn oAuth API

I have a user using my application which implements a social signin using LinkedIn oAuth API.
The error returned is:
invalid_request
and the error description is:
error retrieving consumer xxxxxxxx
Where I've shown xxx appears to be a unique LinkedIn identifier for the user.
I've had no other users report this problem, have been unable to replicate it, and Google matches nothing.
Any ideas? LinkedIn do not have an error reference document, so it's quite difficult to track down what might be going wrong.

No Linked You tube account, Code=401 "The operation couldn’t be completed. While Searching videos

I am using YouTube Data API 2.1.
When I search for video without login everything works fine, I got all the video listed.
But when I try to search after login using an unlinked google account I got
Error Domain=com.google.HTTPStatus Code=401 "The operation couldn’t be
completed. ( NoLinkedYouTubeAccount
NoLinkedYouTubeAccount Error 401 )"
UserInfo=0x67cb240 {error=
NoLinkedYouTubeAccount NoLinkedYouTubeAccount Error 401
, NSLocalizedFailureReason=(
NoLinkedYouTubeAccount NoLinkedYouTubeAccount Error 401
)}
But when I create channel it worked fine.
How it is working when logged out, since this requires no user id:( . Also for searching public data no user id is needed as specified in documents.
Anybody faced the same issue? or am I completely wrong?
Please provide some guidance.
Check out the last comment here:
Previously, when using v=2.1 of the YouTube Data API, a "lightweight"
YouTube channel would be automatically created when there isn't
already a channel for a specific Google Account.
With the transition to linking channels with Google+ profiles, that
functionality has been retired. There are no longer auto-created
channels, and if you're getting that error, it's because there really
isn't an existing channel.
The issue has WontFix status and API 2.x has already been marked as deprecated, I guess the solution for you is to start using the newest API.

Post video on Facebook Page

I'm posting a video to a Facebook profile using the iOS SDK, and it works okey. But when I try to use the same code, and post the native video to a Facebook Page, it fails with the following error:
(#200) App does not have permission to post to target
I'm using the right URL (https://graph-video.facebook.com/pageID/videos) and also I have replaced the user session token, with the Page token.
In fact, posting a photo works okey. But not a video.
What does it mean that "the app does not have permission to post to target"? Should I use a special permission in order to post a video on a page?
Thanks!
There is a bug in the Facebook's video upload code, which hasn't been fixed yet. You can track the updates on this bug using this link.

Resources