Social sharing logic totally refactored, bugs fixed