icyleaf/ShareKit

Upgrade OAuth 2 for Sina Weibo (Or all services ?)

Closed this issue · 3 comments

Here has two solution below:

  1. Migrating to OAuth 2 (Good for almost support OAuth2 services)
  2. Using Sina Weibo OAuth 1 & 2 bridge api (Using OAuth1 acess token exchange Oauth2 access token & expires timestamp)

Completed with commit SHA: a16b8a1 & SHA: 5352dee

Here is import sina weibo official sdk: weibo_ios_sdk_sso-oauth, and iOS 6 Social framework (issue #4).

Flow:

  1. Check iOS version, if it is ios 6, then continue check social type (sinaweibo must chinese language), all pass, it calls Social panel.
  2. Check Sina Weibo app is installed, then open the app (likes Facebook app auth flow).
  3. None of above, open url built-in UIWebView.

Only upgrade for Sina weibo to support OAuth 2