Skip to content

jesusmartinoza/Fuse.SocialShare

Repository files navigation

Fuse.SocialShare

Library to use social share options in Fuse

Installation

fusepm

fusepm is a dependency manager for Fuse projects.

    $ fusepm install https://github.com/jesusmartinoza/Fuse.SocialShare

Manually

Copy the SocialShare.uno, FacebookShare.uxl and FacebookAppId.uxl to your project

Setup(Only Facebook share)

You will need to register for a Facebook App ID and fill it in as Facebook.AppID in FacebookAppId.uxl

Usage

    var SocialShare = require("SocialShare");

    // Create your post or tweet using JSON
    var myTweet = {
        text: "This is a tweet from a Fuse app :D",
        // url : "https://www.fusetools.com",
        via : "fusetools"
    }
    var fbPost = {
        text: "This is a post from a Fuse app :D",
        imageUrl: "https://www.fusetools.com/assets/dist/images/frontpage/showcases@2x.png",
        url : "https://www.fusetools.com"
    }

    // Show the social share dialog.
    SocialShare.byTwitter(myTweet);
    SocialShare.byFacebook(fbPost);

A detailed example in MainView.ux

TODO

  • iOS facebook share.
  • Standard share sheet with picture. Official support by Fuse

About

Share to Facebook and Twitter using native share sheet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages