Third-party logon method tutorial for ios, third-party logon for ios

Source: Internet
Author: User

Third-party logon method tutorial for ios, third-party logon for ios

I haven't written an article for a long time, so I can consolidate my impression.
Third-party sharing has many third-party integration platforms-umeng, mob, Aurora, and wild dogs.
Another way is to download sdk integration from various third-party platforms
Both the original Platform sdk and the third-party platform sdk require project configuration.
First integrate with each platform and then integrate it with a third-party platform. This does not involve the process of applying for appid and key for each platform.

Step 1 configure the project
1) set the whitelist targets-info-URL Types.
2) Add the array field LSApplicationQueriesSchemes to plist.
Tip: Click plist and right-click to switch to code mode and add
LSApplicationQueriesSchemes

Wechat
Weixin
Mqqapi
Mqq
MqqOpensdkSSoLogin
Mqqconnect
Mqqopensdkdataline
Mqqopensdkgrouptribeshare
Mqqopensdkfriend
Mqqopensdkapi
MqqopensdkapiV2
MqqopensdkapiV3
MqqopensdkapiV4
Mqzoneopensdk
Wtloginmqq
Wtloginmqq2
Mqqwpa
Mqzone
Mqzonev2
Mqzoneshare
Wtloginqzone
Mqzonewx
MqzoneopensdkapiV2
Mqzoneopensdkapi19
Mqzoneopensdkapi
Mqqbrowser
Mttbrowser
Sinaweibohd
Sinaweibo
Sinaweibosso
Weibosdk
Weibosdk2.5

3) import the dependency library SystemConfiguration
4) build settings-> other linker flags-ObjC

Step 2 of integration (qq, Weibo)
QQ
The qq sdk package is often changed before there will be a material package I just downloaded no more
Qq: TencentOpenAPI. framework

Importimportimportimportimport "WXApi. h"

[WXApi registerApp: @ "wx0105fa0fa5ed69a1"];

// Create the sending object instance SendMessageToWXReq * sendReq = [[SendMessageToWXReq alloc] init]; sendReq. bText = NO; // do not use text information sendReq. scene = 1; // 0 = friend list 1 = friend list 2 = favorites // create a shared Content Object WXMediaMessage * urlMessage = [WXMediaMessage message]; urlMessage. title = @ "hello"; // share the subject urlMessage. description = @ "test"; // share the description [urlMessage setThumbImage: [UIImage imageNamed: @ "tubiao"]; // share the image. Use the setThumbImage method of SDK to compress the image size.

/// Create a multimedia object
WXWebpageObject * webObj = [WXWebpageObject object];
WebObj. webpageUrl = @ "www.baidu.com"; // sharing Link

// Complete the sending object instance urlMessage. mediaObject = webObj; sendReq. message = urlMessage; // send the sharing information [WXApi sendReq: sendReq];

----- Complete

Umeng sharing
Import umeng sdk
Add-ObjC to Other Linker Flags
Add dependency Library
Libsqlite3.tbd
CoreGraphics. framework
· (Full version)-lite version does not need to add the following dependent Libraries
SystemConfiguration. framework
CoreTelephony. framework
Libsqlite3.tbd
Libc ++. tbd
Libz. tbd

· QQ/QZone/TIM (full version)-lite version does not need to add the following dependent Libraries

SystemConfiguration.framework
libc++.tbd

· Sina Weibo (full version)-lite version does not need to add the following dependency Libraries

SystemConfiguration. framework
CoreTelephony. framework
ImageIO. framework
Libsqlite3.tbd
Libz. tbd
· Twitter
CoreData. framework
· SMS
MessageUI. framework

In delegate

import import

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.