Modified code to use Facebook php sdk.
Added to Facebook php sdk files