Login to Weibo using OAuth 2.0 from iOS app?

1.4k Views Asked by At

I'm trying to login to Sina Weibo from my iOS app using OAuth 2.0. I got the official Sina Weibo SDK from here and official documentation from here.

When I import the SDK and creates an instance it asks for appRedirectURI.

SinaWeibo *sinaWeibo = [[SinaWeibo alloc] initWithAppKey:kAppKey appSecret:kAppSecret appRedirectURI:kAppRedirectURI andDelegate:self];

I want to know why we need RedirectURI in iOS app, I know it is required in Android apps but I think it is not required in iOS apps.

Can someone please explain me?

Thanks.

1

There are 1 best solutions below

0
On

Did not you try the wrapper class from here, which make things easy?