Skip to content

新版WBShareKit,目前支持新浪微博,腾讯QQ,认证方式使用的oauth2.0。

Notifications You must be signed in to change notification settings

royalwang/WBShareKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1.CHShareManager.m中修改配置信息

#define kWBAppkey @"xxxx"    
#define kWBSecret @"xxx"  
#define kQQAppkey @"xxx"
#define kQQSecret @"" //optional

2.修改qq回调地址 WBAuthorizeWebView.m

#define kQQCallback @"qq.com"  

sina无需修改

3.添加Security.framework

4.调用查看WBShareKitViewController.m

- (IBAction)sinaSend:(id)sender {
    if (![[CHShareManager mainManager] sinaIsVailed]) {
        [[CHShareManager mainManager] showLoginOnViewController:self type:@"sina" finish:@selector(logInDidFinished:) failed:@selector(logInDidFailed:Error:)];
    }
    else{
        [[CHShareManager mainManager] sendWeibo:@"WBShareKit test" image:nil type:@"sina" vc:self finish:@selector(sendDidFinished:) failed:@selector(sendDidError:)];
    }
}

- (IBAction)qqSend:(id)sender {
    if (![[CHShareManager mainManager] qqIsVailed]) {
        [[CHShareManager mainManager] showLoginOnViewController:self type:@"qq" finish:@selector(logInDidFinished:) failed:@selector(logInDidFailed:error:)];
    }
    else
    {
        [[CHShareManager mainManager] sendWeibo:@"WBShareKit test" image:nil type:@"qq" vc:self finish:@selector(sendDidFinished:) failed:@selector(sendDidError:)];//暂时不支持发送图片,可利用分享api传入image url来实现发送目的。
    }
}

5.新版WBShareKit只是将 http://qzonestyle.gtimg.cn/qzone/vas/opensns/res/doc/Connect_IOS_SDK__V1.2.ziphttp://code.google.com/p/sinaweibosdkforoauth2/downloads/list 合并,时间紧凑,代码有些乱,见谅

更多信息

http://www.chlova.com

http://www.minroad.com

About

新版WBShareKit,目前支持新浪微博,腾讯QQ,认证方式使用的oauth2.0。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published