<?php
$opts = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.2',
);
$appId = 'blah';
$secret = 'test';
$params = array();
$params['access_token'] = $appId . '|' . $secret;
$params['method'] = "POST";
$url = 'https://graph.facebook.com/1485968504982945';
$opts[CURLOPT_URL] = $url;
$opts[CURLOPT_SSL_VERIFYPEER] = false;
$opts[CURLOPT_POSTFIELDS] = http_build_query($params, null, '&');
$opts[CURLOPT_HTTPHEADER] = array('Expect:');
$ch = curl_init();
curl_setopt_array($ch, $opts);
$result = curl_exec($ch);
$errno = curl_errno($ch);
echo "Error Number: " . $errno . "\n";
echo "Results: ";
print_r($result);php curl_test.phpError Number: 0
Results: {"error":{"message":"Invalid OAuth access token signature.","type":"OAuthException","code":190}}Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
