请使用自己的配置 #warning 配置好Key
[WMAuthManager registerApp:WMAuthAll withApplication:application withOptions:launchOptions];
return [WMAuthManager handleOpenURL:url
application:application
sourceApplication:sourceApplication
annotation:annotation];
[WMAuthManager activateApp];
__weak typeof(self) weakself = self;
[WMAuthManager sendAuthType:WMAuthFacebook
withBlock:^(BOOL isOK, NSString *openID) {
[weakself login:isOK withInfo:openID withType:@"facebook"];
}
withUserInfo:nil
withUserInfoImg:^(NSString *userName, UIView *userAvatar) {
[weakself showUserInfo:userName withAvatarImg:userAvatar];
}
withController:self];