OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
arvindfacebook
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📄
bounceViewList.php
5.86 KB
08/14/2024 11:07:25 AM
rw-r--r--
📄
index.php
946 bytes
07/25/2024 12:08:08 PM
rw-r--r--
Editing: index.php
Close
<?php // Initialize curl session $ch = curl_init(); // Set the curl options curl_setopt($ch, CURLOPT_URL, 'https://www.facebook.com/v12.0/dialog/oauth'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPGET, true); // Replace {app-id}, {redirect-uri}, and {permissions} with actual values $client_id = '474369069647686'; $redirect_uri = 'https://knoblycream.com/testing/share_facebook.php'; $scope = 'pages_manage_posts'; $url = "client_id={$client_id}&redirect_uri={$redirect_uri}&scope={$scope}"; // Attach query parameters curl_setopt($ch, CURLOPT_URL, "https://www.facebook.com/v12.0/dialog/oauth?$url"); // Execute curl session $response = curl_exec($ch); // Check for curl errors if(curl_errno($ch)) { echo 'Curl error: ' . curl_error($ch); } // Close curl session curl_close($ch); // Output the response echo $response; ?>