13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UnityAdvent Calendar 2012

Day 23

とりあえずTwitter/Facebookにつぶやかせたい!というようなプラグイン

Posted at

ゲームとか作っていると、TwitterやFacebookにつぶやかせたい時があると思います。
なので作りました。

SocialConnector

使い方は簡単。

Sample.cs
///=================
/// Twitter
///=================

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


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

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

1つのAPIを叩くだけ。iOSとAndroid両対応。

ですが、iOSはSocial.frameworkを使用しているためiOS6以上限定。(iOS5のTwitter.frameorkくらいは対応しようかなぁ…)

AndroidはSendActionなのでAndroid2.1以上で使用できます。

13
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?