<?php
/*
appinclude.php
auth: Thomas Scherz @ University of Cincinnati
date: March 5, 2008
desc: Connects facebook to the API and creates global variables
	  If Session is invalid, sends user to login page.
	
*/

require_once 'facebook.php';

//Change the keys here to your own api and secret keys:
$appapikey = 'f7bf727e44a2c2860a943656e5115572';
$appsecret = '4072821e3dd920d33924456a077161a2';
$facebook = new Facebook($appapikey, $appsecret);
$user = $facebook->require_login();

//Change the following urls to your callback url and Internal Url
$appcallbackurl = 'http://www.libraries.uc.edu/facebook/';  
$appInternalURL = 'http://apps.facebook.com/ucresearch/';

//catch the exception that gets thrown if the cookie has an invalid session_key in it

?>