OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
testing
/
backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/10/2024 05:27:49 AM
rwxr-xr-x
📄
accessTest.php
1.06 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
credential.json
345 bytes
10/07/2024 05:44:52 AM
rw-r--r--
📄
facebook_callback.php
2.63 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
facebook_share.php
2.41 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
index.php
726 bytes
10/07/2024 05:44:52 AM
rw-r--r--
📄
link_post.php
1.34 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
permissionTest.php
1.19 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
postTest.php
1.73 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
post_to_page.php
2.17 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
share_facebook.php
2.41 KB
10/07/2024 05:44:52 AM
rw-r--r--
📄
share_post.php
885 bytes
10/07/2024 05:44:52 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']; }