fix bugs in facebook sharing