top.location.href='" . $auth_url . "'"); } else { $token_url = "https://graph.facebook.com/oauth/access_token?client_id=" . $app_id . "&redirect_uri=" . urlencode($canvas_page) . "&client_secret=" . $app_secret . "&code=" . $code; $access_token = file_get_contents($token_url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://graph.facebook.com/me/feed?" . $access_token); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "message=$yorum&picture=$resim&name=$baslik&description=$aciklama&link=$link"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $store = curl_exec ($ch); curl_close ($ch); if($yonlenecek_adres!='') echo(""); } ?>