Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.27 KB

README.md

File metadata and controls

42 lines (35 loc) · 1.27 KB

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