Make share function more generic, not only twitter