Skip to content

unwest/social-connector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Connector v0.1.3

1つのAPIでTwitter/Facebookにポスト出来るUnityプラグインです。

Twitter

Requirements

iOS

  • iOS6.0+ : using Social.framework

Android

  • Android 2.1+

Usage

///=================
/// Twitter
///=================
		
SocialConector.PostMessage ( SocialConector.ServiceType.Twitter, "text" );


///=================
/// Facebook
///=================

SocialConector.PostMessage ( SocialConector.ServiceType.Facebook, "text" );	
	

Example

See Assets/Plugins/SocialConnector/Sample/Sample.cs

Scene

	void OnGUI ()
	{
		///=================
		/// Twitter
		///=================
	
		if (GUILayout.Button ("<size=50><b>Twitter</b></size>")) {
			SocialConector.PostMessage (SocialConector.ServiceType.Twitter);
		}
		if (GUILayout.Button ("<size=50><b>Twitter text</b></size>")) {
			SocialConector.PostMessage (SocialConector.ServiceType.Twitter, "text");
		}
		if (GUILayout.Button ("<size=50><b>Twitter text&url</b></size>")) {
			SocialConector.PostMessage (SocialConector.ServiceType.Twitter, "text", "http://japan.unity3d.com/");
		}
		
		///=================
		/// Facebook
		///=================
		
		if (GUILayout.Button ("<size=50><b>Facebook</b></size>")) {
			SocialConector.PostMessage (SocialConector.ServiceType.Facebook);
		}
		if (GUILayout.Button ("<size=50><b>Facebook text</b></size>")) {
			SocialConector.PostMessage (SocialConector.ServiceType.Facebook, "text");
		}
		if (GUILayout.Button ("<size=50><b>Facebook text&url</b></size>")) {
			SocialConector.PostMessage (SocialConector.ServiceType.Facebook, "text", "http://japan.unity3d.com/");
		}
		
	}

LICENSE

Copyright (C) 2011 Keigo Ando

This software is provided 'as-is', without any express or implied
warranty.  In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

Future

See Issue

  • Support iOS4.3 - iOS5.1
  • Post Image

iOS-Facebook Android-Twitter Android-Facebook Android

About

Social Connector

Resources

License

Stars

Watchers

Forks

Packages

No packages published