feature #5592: fix facebook plugin bugs