Custom URL schemes on iphone oauth twitter

After sending the user to the safari for authorization, I get the message mobile.twitter.com, unlike my custom URL scheme (something like MyApp: //). at the request marker stage, I got oauth_callback_confirmed = true.

I tried using a regular link like http://www.teamliquid.net , which works fine. Is there something I'm missing?

I also tried directly entering "myapp: //" in safari and correctly redirected back to my application ...

+4
source share
1 answer

To answer my own question.

myapp:// does not meet specification. You must add a path. something like myapp://oauth , or just use myapp: (without a slash)

you must also implement - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url method in your application. there you will get your myapp://oauth?oauth_token=xxx&oauth_verifier=yyy to start the access token.

+2
source

Source: https://habr.com/ru/post/1344692/


All Articles