Le 21/11/2013 19:53, [email protected] a écrit : > Hello! > > I'm building a Firefox OS App and I'm wondering about the best way to share > content (only text) by email, Twitter or Facebook. > > I see there is this MozActivity API, with the "share" activity that opens a > dialog that shows me Facebook, E-Mail and Twitter (Apps are installed), but > also other Services that don't make sense for sharing just text, like > Bluthooth. > > So my questions are: > > a) how can I filter out the services from this menu that don't make sense for > just sharing a text message? I tried {name: "share", data: { type: "text/*" > }} but it seems not to work. > b) how can I set the text I wan't to twitter, share by facebook or - in the > case of email - how can I set subject and body?
You might find some examples here: https://gitorious.org/scrapfilbleu/scrapfilbleu/source/f50f09c5b31de87f5f3e84fcf039c2d1cdb8710c:FilATours_HTML5/js/filatours.js#L634 > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g > _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
