//通过微博编辑分享
- (void)shareWeiBoWithMessage
{
WBAuthorizeRequest *authRequest = [WBAuthorizeRequest request];
authRequest.redirectURI = @"";
authRequest.scope = @"all";
WBSendMessageToWeiboRequest *request = [WBSendMessageToWeiboRequest requestWithMessage:[self messageToShare] authInfo:authRequest access_token: _wbtoken];
// request.shouldOpenWeiboAppInstallPageIfNotInstalled = NO;
[WeiboSDK sendRequest:request];
}
//分享微博时 message初始化数据
- (WBMessageObject *)messageToShare
{
WBMessageObject *message = [WBMessageObject message];
message.text = @"#test# ";
WBImageObject *image = [WBImageObject object];
image.imageData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"weibo" ofType:@"jpg"]];
message.imageObject = image;
return message;
}