Copied pinterest method in ShareHelper from 0.2 to 0.1 branch.