issue #5592:refactor facebook plugin and fix bugs of dialog callback
Merge pull request #701 from joshuastray/fb_refactor

issue #5592:refactor facebook plugin and fix bugs of dialog callback