You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?// Facebook Programmierung - Galileo Verlag, Michael Kamleitner// Weitere Informationen sowie Aktualisierungen zu diesem Code-Beispiel finden Sie unter http://book.socialisten.atinclude_once('tools.php');define('APP_ID', '214728715257742');define('APP_SECRET', '********************************'); define('SITE_URL', 'http://apps.mycompany.com');print get_app_accesstoken(APP_ID, APP_SECRET);if ( !function_exists('get_app_accesstoken')) { function get_app_accesstoken($app_id, $app_secret) { $url = "https://graph.facebook.com/oauth/access_token?client_id=".$app_id."&client_secret=".$app_secret."&grant_type=client_credentials"; $access_token = curl($url); $access_token = substr($access_token,strpos($access_token,"=")+1); return $access_token; } }?>