To begin, first register your Facebook application (by clicking the ‘Create New App button’). Now, go to the web page, on which, we need to implement the authentication. import the Facebook
Enter your App name then Continue, your App will get App ID and App Secret, this App ID and App Secret will be used somewhere in the code later.
What's a simple example using the Facebook JS API to display the name of the person logged in? This is in an iFrame, so I can't use the easy FBML stuff.
You don't need to use the name of the node in the endpoint. Using the /comment endpoint as an example, the endpoint would just contain the