put fbSharing outside so that popup can show.