Some improvements to Facebook SDK 3.0 integration