Added JSON response on FB.ui callback

Added JSON response on FB.ui callback to fix issue #380.