Facebook Methods description: users.getLoggedInUser

Gets the user id (uid) associated with the current sesssion. This value should be stored for the duration of the session, to avoid unnecessary subsequent calls to this method. The same value is also returned by facebook.auth.getSession.

Facebook PHP tutorial: How to Build a Facebook Application with CakePHP

In this tutorial on facebook-developer website, you will learn to create your first Facebook application with CakePHP.
You will go through the following steps:
1. Create a Facebook application.
2. Install the free version of CakePHP.
3. Install the Facebook Platform API in “/app/vendor/facebook”.
4. Modify the AppController base class.
5. Create a basic controller class that will inherit the AppController […]