取消”pscc新增功能第三方登路功能”怎样操作?

IOS项目集成ShareSDK实现第三方登录、分享、关注等功能。
(1)官方ShareSDK iOS 2.8.8,地址:/
(2)根据实际情况,引入相关的库,参考官方文档。
(3)在项目的AppDelegate中一般情况下有三个操作,第一是注册ShareSDK,第二是注册各个平台的账号,第三是关于微信等应用的回调处理。
// AppDelegate.m
// ShareSDKTest
// Created by wangdalei on 14-6-23.
// Copyright (c) 2014年 王大雷. All rights reserved.
#import AppDelegate.h
#import RootViewController.h
#import WeiboApi.h
#import WXApi.h
@implementation AppDelegate
@synthesize rootVC;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
if (self.rootVC==nil) {
self.rootVC = [[RootViewController alloc]initWithNibName:@RootViewController bundle:nil];
UINavigationController *rootNav = [[UINavigationController alloc]initWithRootViewController:self.rootVC];
self.window.rootViewController = rootN
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
[ShareSDK registerApp:@1a2e7ab5fb6c];
//添加新浪微博应用 注册网址
此处需要替换成自己应用的
[ShareSDK connectSinaWeiboWithAppKey:@
appSecret:@1e8f76badf
redirectUri:@];
//添加腾讯微博应用 注册网址 http://dev.
此处需要替换成自己应用的
[ShareSDK connectTencentWeiboWithAppKey:@
appSecret:@ae36f4ee3946e1cbb98dff5c
redirectUri:@
wbApiCls:[WeiboApi class]];
//添加QQ空间应用 注册网址 /intro/login/
此处需要替换成自己应用的
[ShareSDK connectQZoneWithAppKey:@
appSecret:@aed9be27bae87cd
qqApiInterfaceCls:[QQApiInterface class]
tencentOAuthCls:[TencentOAuth class]];
//此参数为申请的微信AppID
此处需要替换成自己应用的
[ShareSDK connectWeChatWithAppId:@wxf87885 wechatCls:[WXApi class]];
//添加QQ应用 该参数填入申请的QQ AppId
此处需要替换成自己应用的
[ShareSDK connectQQWithQZoneAppKey:@
qqApiInterfaceCls:[QQApiInterface class]
tencentOAuthCls:[TencentOAuth class]];
return YES;
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background t here you can undo many of the changes made on entering the background.
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
#pragma mark - WX回调
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return [ShareSDK handleOpenURL:url wxDelegate:self];
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [ShareSDK handleOpenURL:url sourceApplication:sourceApplication annotation:annotation wxDelegate:self];
#pragma mark - WXApiDelegate
/*! @brief 收到一个来自微信的请求,第三方应用程序处理完后调用sendResp向微信发送结果
* 收到一个来自微信的请求,异步处理完成后必须调用sendResp发送处理结果给微信。
* 可能收到的请求有GetMessageFromWXReq、ShowMessageFromWXReq等。
* @param req 具体请求内容,是自动释放的
-(void) onReq:(BaseReq*)req{
/*! @brief 发送一个sendReq后,收到微信的回应
* 收到一个来自微信的处理结果。调用一次sendReq后会收到onResp。
* 可能收到的处理结果有SendMessageToWXResp、SendAuthResp等。
* @param resp具体的回应内容,是自动释放的
-(void) onResp:(BaseResp*)resp{
(4)信息分享。
-(IBAction)share:(id)sender{
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@card ofType:@png];
//构造分享内容
id publishContent = [ShareSDK content:@分享内容测试
defaultContent:@默认分享内容测试,没内容时显示
image:[ShareSDK imageWithPath:imagePath]
title:@pmmq
description:@这是一条测试信息
mediaType:SSPublishContentMediaTypeNews];
[ShareSDK showShareActionSheet:nil
shareList:nil
content:publishContent
statusBarTips:YES
authOptions:nil
shareOptions: nil
result:^(ShareType type, SSResponseState state, id statusInfo, id error, BOOL end) {
if (state == SSResponseStateSuccess)
NSLog(@分享成功);
else if (state == SSResponseStateFail)
NSLog(@分享失败);
(5)登录、登出、获取授权信息、关注制定微博
// LoginViewController.m
// ShareSDKTest
// Created by wangdalei on 14-6-23.
// Copyright (c) 2014年 王大雷. All rights reserved.
#import LoginViewController.h
@interface LoginViewController ()
-(IBAction)loginWithSina:(id)
-(IBAction)loginWithQQ:(id)
-(IBAction)loginoutWithSina:(id)
-(IBAction)loginoutWithQQ:(id)
-(IBAction)guanzhuUs:(id)
-(void)reloadStateWithType:(ShareType)
@implementation LoginViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
- (void)viewDidLoad {
[super viewDidLoad];
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
- (IBAction)loginWithSina:(id)sender {
[ShareSDK getUserInfoWithType:ShareTypeSinaWeibo authOptions:nil result:^(BOOL result, id userInfo, id error) {
NSLog(@%d,result);
if (result) {
//成功登录后,判断该用户的ID是否在自己的中。
//如果有直接登录,没有就将该用户的ID和相关资料在数据库中创建新用户。
[self reloadStateWithType:ShareTypeSinaWeibo];
-(IBAction)loginWithQQ:(id)sender{
[ShareSDK getUserInfoWithType:ShareTypeQQSpace authOptions:nil result:^(BOOL result, id userInfo, id error) {
NSLog(@%d,result);
if (result) {
//成功登录后,判断该用户的ID是否在自己的数据库中。
//如果有直接登录,没有就将该用户的ID和相关资料在数据库中创建新用户。
[self reloadStateWithType:ShareTypeQQSpace];
-(IBAction)loginoutWithSina:(id)sender{
[ShareSDK cancelAuthWithType:ShareTypeSinaWeibo];
[self reloadStateWithType:ShareTypeSinaWeibo];
-(IBAction)loginoutWithQQ:(id)sender{
[ShareSDK cancelAuthWithType:ShareTypeQQSpace];
[self reloadStateWithType:ShareTypeQQSpace];
-(void)reloadStateWithType:(ShareType)type{
//现实授权信息,包括授权ID、授权有效期等。
//此处可以在用户进入应用的时候直接调用,如授权信息不为空且不过期可帮用户自动实现登录。
id credential = [ShareSDK getCredentialWithType:type];
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@TEXT_TIPS, @提示)
message:[NSString stringWithFormat:
@uid = %@ token = %@ secret = %@ expired = %@ extInfo = %@,
[credential uid],
[credential token],
[credential secret],
[credential expired],
[credential extInfo]]
delegate:nil
cancelButtonTitle:NSLocalizedString(@TEXT_KNOW, @知道了)
otherButtonTitles:nil];
[alertView show];
//关注用户
-(IBAction)guanzhuUs:(id)sender{
[ShareSDK followUserWithType:ShareTypeSinaWeibo //平台类型
field:@ShareSDK //关注用户的名称或ID
fieldType:SSUserFieldTypeName //字段类型,用于指定第二个参数是名称还是ID
authOptions:nil //授权选项
viewDelegate:nil //授权视图委托
result:^(SSResponseState state, id userInfo, id error) {
if (state == SSResponseStateSuccess) {
NSLog(@关注成功);
} else if (state == SSResponseStateFail) {
NSLog(@%@, [NSString stringWithFormat:@关注失败:%@, error.errorDescription]);
(5)你可能会看到一些应用需要第三方登录的,一种是弹出webView加载的新浪微博或者qq的网页授权,还有一种是跳转到本地的已经安装的新浪微博应用或者qq应用进行授权。第二种授权方式较SSO授权,体验会比较好一些,因为不需要用户输入新浪微博或QQ的用户名与密码。
第二种授权方式需要在plist中配置Scheme。SSO默认是打开的不需要配置。在AppDelegate中实现回调。
(6)测试DEMO截图:抱歉,您要访问的信息不存在或被删除
&& 秒后将自动跳转到
&&1、请检查输入的网址是否正确。
&&2、如果不能确认输入的网址,请浏览来查看所要访问的网址。
&&3、直接输入要访问的内容进行搜索:股票/基金&
QQ校友更名腾讯朋友 新增第三方开发者参与功能
作者:刘丹
  经济观察网 记者 刘丹 昨日,腾讯旗下社区QQ校友更名为腾讯朋友,同时启动独立域名,在原来QQ校友的基础上做出了六项第三方开发者参与的新功能,被业内认为是腾讯开放平台战略的第一步。
  腾讯相关负责人对本网记者表示,空间的开放是持续的,QQ空间的开放已经做了很久了,只不过没有社区平台那么受关注,腾讯对平台开放也是有计划的。
  此前,腾讯董事会主席兼CEO马化腾曾表示,开放平台是腾讯的长远战略,目标链的共赢发展,让更多中小企业在腾讯平台的发展中受益。
  上述腾讯负责人称,此前腾讯的相当部分收入都是和合作伙伴分享的,在互娱、无线与电信增值业务以及互联网增值业务方面非常明显。
  此前,腾讯因扼杀互联网创业而被视为“互联网公敌”,2010年9月起,腾讯社区开放平台向第三方开发者开放,许多第三方应用提供给腾讯社区的用户。随后,腾讯旗下的财付通、拍拍、搜搜以及应用频道都实现了平台开放。
09/27 04:50
新闻精品推荐
每日要闻推荐
社区精华推荐
精彩焦点图鉴
  【免责声明】本文仅代表作者本人观点,与和讯网无关。和讯网站对文中陈述、观点判断保持中立,不对所包含内容的准确性、可靠性或完整性提供任何明示或暗示的保证。请读者仅作参考,并请自行承担全部责任。抱歉,您要访问的信息不存在或被删除
&& 秒后将自动跳转到
&&1、请检查输入的网址是否正确。
&&2、如果不能确认输入的网址,请浏览来查看所要访问的网址。
&&3、直接输入要访问的内容进行搜索:仅仅是使用微信第三方登录的功能,需要进行开发者资质认证吗_百度知道
仅仅是使用微信第三方登录的功能,需要进行开发者资质认证吗
我想在安卓平台上开发一款应用,需要用到微信第三方登录,仅仅只是缉埂光忌叱涣癸惟含隶登录功能,请问需要进行开发者资质认证吗?
提问者采纳
只需要通过接口的审核就是了
是需要开发者资质认证的
那你就只有去认证开发者资质了,这是需要企业才能有这种资质的
提问者评价
其他类似问题
为您推荐:
其他3条回答
1:需要通过接口的审核就是了。2:需要企业才能有这种资质的 那就得去认证开发者资质了。
不需要哦。。没问题的
哦哦,那能再给我解释一下在开发者资质认证通过后所获得的高级功能都有哪些呢??
不需要进行开发者资质认证;微信公众平台帐号和微信开放平台账号是不同的,微信第三方登陆,需要备案过的网站,在微信的开放平台申请接入,微信第三方接口申请的地址是,泰牛程序员的微信课程里面讲的有这些
资质认证的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 excel2013新增功能 的文章

 

随机推荐