9 Jan 2015 Facebook Login Flow & Best Practices . For more on this see, "Using The JavaScript SDK And PHP SDK Together" below. FB.init({ appId .