Saturday, August 25, 2018
Wednesday, August 22, 2018
Sunday, August 19, 2018
Saturday, August 18, 2018
Friday, August 17, 2018
Structure of Facebook PHP SDK in PHP
<?php
require_once ('vendor/autoload.php');
$fb = new Facebook\Facebook([
'app_id' => '************',
'app_secret' => '************************',
'default_graph_version' => 'v2.3',
]);
$pageAccessToken = '************************************';
try
{
$response = $fb->post('/me/feed', $pageAccessToken);
}
catch(Facebook\Exceptions\FacebookResponseException $e)
{
echo 'Graph returned an error: '.$e->getMessage();
exit;
}
catch(Facebook\Exceptions\FacebookSDKException $e)
{
echo 'Facebook SDK returned an Error: '.$e->getMessage();
exit;
exit;
}
$graphNode = $response->getGraphNode();
echo 'ID:'.$graphNode['id'];
?>
Thursday, August 16, 2018
Wednesday, August 15, 2018
Saturday, August 11, 2018
Wednesday, August 8, 2018
Saturday, August 4, 2018
Subscribe to:
Posts (Atom)