share_social_media_plugin 1.0.5 copy "share_social_media_plugin: ^1.0.5" to clipboard
share_social_media_plugin: ^1.0.5 copied to clipboard

discontinued
outdated

Share social media plugin, share Line, Twitter, FB, Instagram and more!, I try develop step for step. Any suggestion please contact me.

share_social_media_plugin #

Share social media plugin

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Share text in your social media.

  • Line (Android / iOS)
  • Twitter (Android / iOS)
  • Instagram (coming)

Example #

Share in Line.

 await ShareSocialMediaPlugin.shareLine("My share text");

Share in Twitter

//Set keys
final twitterLogin = new ShareSocialMediaPlugin(
      consumerKey: "consumerKey",
      consumerSecret: 'consumerSecret');

          onPressed: () async{
                      if (Platform.isAndroid) {
                        twitterLogin.shareTwitter("ありがとう");
                      } else if (Platform.isIOS) {
                        var sessionTwitter = await twitterLogin.currentSessionIOS();
                        var tweet = await twitterLogin.shareTwitteriOS(sessionTwitter["outhToken"], sessionTwitter["oauthTokenSecret"],
                            "ありがとう", twitterLogin.consumerKey, twitterLogin.consumerSecret);
                        print(tweet.body.toString());
                      }
                    },

**Note For iOS Twitter In plist add:

	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>TwitterLoginSampleOAuth</string>
			</array>
		</dict>
	</array>

!IMPORTANT

In your developer.twitter.com app , you need add the next callback -TwitterLoginSampleOAuth:// -twittersdk://

Thank you for your repo https://github.com/bodnarrr/flutter_twitter_login/blob/master/android/src/main/java/com/bodnarrr/fluttertwitterlogin/fluttertwitterlogin/TwitterLoginPlugin.java

18
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Share social media plugin, share Line, Twitter, FB, Instagram and more!, I try develop step for step. Any suggestion please contact me.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

crypto, flutter, http, intl, random_string

More

Packages that depend on share_social_media_plugin