public function apprequests()
 {
     Configure::write('Application.app_id', '141756772615202');
     Configure::write('Application.app_secret', '6d9ab4dcf4d5c155ebf88737a28e449a');
     // Can be \Facebook\User objects
     $robert_nagency = new \Facebook\User('robert.nagency');
     // Can be normal vanity usernames
     $christian_winther = 'christian.winther';
     // Can be IDs
     $daniel_baek = '8648808';
     // Setup our application we wish to invite people to
     // Remember to setup canvas URLs for the application, or it will not work
     $application = new \Facebook\Application('141756772615202', array('access_token' => FB::getAppToken()));
     // Invite people to the app
     $response = $application->apprequest(array($robert_nagency, $christian_winther, $daniel_baek), 'Demo App Invite');
     debug($response);
 }