Skip to content
Share to Facebook and Twitter using native share sheet
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
FacebookAppId.uxl
FacebookShare.uxl
LICENSE
MainView.ux
README.md
SocialShare.uno
SocialShare.unoproj
SocialShare_include.unoproj

README.md

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
You can’t perform that action at this time.