OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reader
/
facebook
/
backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
accessTest.php
1.06 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
credential.json
345 bytes
03/03/2025 08:20:43 AM
rw-r--r--
📄
facebook_callback.php
2.63 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
facebook_share.php
2.41 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
index.php
726 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
link_post.php
1.34 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
permissionTest.php
1.19 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
postTest.php
1.73 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
post_to_page.php
2.17 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
share_facebook.php
2.41 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
share_post.php
885 bytes
05/19/2025 10:07:15 AM
rw-r--r--
Editing: accessTest.php
Close
<?php $credentials = json_decode(file_get_contents('credential.json'), true); $longLivedToken = $credentials['longLivedToken']; // Long-Lived Access Token to be tested // $longLivedToken = 'EAAGvb6fjh0YBO32eFQzgo93fTwfvZAJRs5iMCSbLDKB9cZCRmS29Gz1wiVUjrMoevJHkozCo02icx6WhxYrGYA9pktT3mVrUsKnfAMLZCHhQn5UhVYSC925PZA3dm2d8MiVb5DiHpXF04XmgUuwvFAmDZBPMhv5ZBIvtqs7IOrohHK5AWtIT2ozGBmZC2QEfC7y2DcAJwZDZD'; // URL to test the token $url = 'https://graph.facebook.com/v20.0/me?fields=id,name&access_token=' . $longLivedToken; // Initialize cURL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Execute the request $response = curl_exec($ch); curl_close($ch); // Decode the response $user = json_decode($response, true); echo "Response from the oAuth<br><prze>"; print_r($user); echo "</pre><br>"; // Check if there was an error if (isset($user['error'])) { echo 'Error: ' . $user['error']['message']; } else { echo 'User ID: ' . $user['id'] . '<br>'; echo 'Name: ' . $user['name']; }