public static void main(String[] args) {
LegacyFacebookClient facebookClient = new DefaultLegacyFacebookClient(MY_ACCESS_TOKEN);
// Last parameter specifies that this API call's result should be returned
// to us as a Long value.
Long uid = facebookClient.execute("users.getLoggedInUser", Long.class);
System.out.println("My UID is " + uid);
// FQL query which asks Facebook for your friends' names, profile picture
// URLs, and network affiliations