Coder Social home page Coder Social logo

wave2future / wbsharekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qdvictory/wbsharekit

1.0 2.0 0.0 374 KB

目前支持新浪微博,腾讯微博,豆瓣说,发推,网易微博,认证方式使用的oauth。

Home Page: http://www.minroad.com

wbsharekit's Introduction

1.WBShareKey.h中修改配置信息

2.app delegate中添加

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
    [[WBShareKit mainShare] handleOpenURL:url];   
    return YES;
}

- (void)sinaSuccess:(NSData *)_data
{
    NSLog(@"sina ok:%@",_data);
}

- (void)sinaError:(NSError *)_error
{
    NSLog(@"sina error:%@",_error);
}

//[[WBShareKit mainShare] startSinaOauthWithSelector:@selector(sinaSuccess:) withFailedSelector:@selector(sinaError:)];
//如上认证代码添加的@selector也将会在此调用

3.在info.plist中修改url types

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
	<dict>
		<key>CFBundleTypeRole</key>
		<string>Editor</string>
		<key>CFBundleURLName</key>
		<string>minroad.com</string>
		<key>CFBundleURLSchemes</key>
		<array>
			<string>oauth</string>
		</array>
	</dict>
</array>
</plist>

4.具体调用请查看WBShareKitViewController.m

更多信息

http://www.chlova.com

http://www.minroad.com

wbsharekit's People

Contributors

qdvictory avatar

Stargazers

Wave avatar

Watchers

Wave avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.