[ShareSDK registerApp:@"1111111111"]; //不同app设置不同shareSDK的APP Key
//在QQ平台中注册app的id跟appSecret,在下面填写响应的appid以及appSecret
//在QQ空间平台中注册app的id跟appSecret,在下面填写响应的appid以及appSecret
[ShareSDK connectQZoneWithAppKey:@"1111111111"
appSecret:@"11111111111"
qqApiInterfaceCls:[QQApiInterface class]
tencentOAuthCls:[TencentOAuth class]];
[ShareSDK connectQQWithQZoneAppKey:@"222222222"
qqApiInterfaceCls:[QQApiInterface class]
tencentOAuthCls:[TencentOAuth class]];
//在微信平台中注册app的id跟appSecret,在下面填写响应的appid以及appSecret
//在info.plist中添加URL types——item0——URL Schemes——item0(填写appid)
[ShareSDK connectWeChatWithAppId:@"2222222222222"
appSecret:@"22222222222222222222222"
wechatCls:[WXApi class]];