SocialShare iOS/Android

Back to Show and Tell

Hey guys,

I've been working in a library to share content from JS to Twitter and Facebook. In the next few days I hope to complete the implementation of FB iOS and also sharing using the standard sheet with picture.

Here is an example of how it works

    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);

https://github.com/jesusmartinoza/Fuse.SocialShare

Just one question Is it correct to use Fuse.LibraryName or is it reserved for official projects? :P

That's a pretty good question, and I don't think we've really decided on anything there. We don't "reserve names" on a technical level, but I think it'd be a forward looking approach to not use the Fuse prefix: you'll guarantee you'll have zero conflicts in the future and if you intend to make more packages (I hope so!) It's an opportunity to brand yourself :)

Post Stats
  • 3
    replies
  • 554
    views
  • 2
    users