iOS Post to Twitter/Facebook/Mail

White Dev

(39)
$14
Publisher White Dev
File size 60.44kB
Number of files 17
Latest version 2.0.0
Latest release date 2018-06-04 09:50:26
First release date 2013-07-02 07:29:10
Supported Unity versions 2018.4.2 or higher
This plugin is run on iOS native code. You can post text and image to Twitter, Facebook or Mail.


Note:
Must add a key to Info.plist to "Save Image" from Activity in iOS 10.
- NSPhotoLibraryUsageDescription

Features:
- Post text and image to any services.
- Post to Twitter
- Post to Facebook
- Send Mail
- Post to Weibo (China Only)
- Support for add an URL to message


Must Link Frameworks in Xcode:
- Social.framework
- MessageUI.framework


Demo Video

How to use (C# Script):

Twitter:
iOS_Post.IsAvailable(iOS_Post.ToTweet);
iOS_Post.Post(iOS_Post.ToTweet, text, url, image);

Facebook:
iOS_Post.IsAvailable(iOS_Post.ToFacebook);
iOS_Post.Post(iOS_Post.ToFacebook, text, url, image);

Activity:
iOS_Post.IsAvailable(iOS_Post.ToActivity);
iOS_Post.Post(iOS_Post.ToActivity, text, url, image);

Mail:
iOS_Post.MailInfo mailInfo;
mailInfo.subject = "Subject";
mailInfo.toList = new string[1] { "[email protected]" };
mailInfo.ccList = null;
mailInfo.bccList = null;
iOS_Post.SendMail (ref mailInfo, text, url, image);


Support: [email protected]