What you do looks great.
The instruction you saw: "But you need to make sure that you do not define FB in your own JS code or libraries!" this is just a warning not to declare a variable named FB
in your application, otherwise you will hide the SDK for Facebook.
In your code on the very next line, you can start calling using FB.api
or any other method.
Does it help?
source share