$fbr_app_id, 'app_secret' => $fbr_app_secret, 'default_graph_version' => 'v2.2', 'default_access_token' => $_SESSION['fb_access_token'] ]); try { // Get the \Facebook\GraphNodes\GraphUser object for the current user. // If you provided a 'default_access_token', the '{access-token}' is optional. $response = $fb->get('/me/accounts'); } catch(\Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch(\Facebook\Exceptions\FacebookSDKException $e) { // When validation fails or other local issues echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit; } $graphEdge = $response->getGraphEdge(); } ?>

Facebook Ratings

Connectez-vous et autorisez Facebook Ratings à accéder à vos Pages.


'; $html .= __( $content, 'wp-fb-ratings' ); $html .= ''; $html .= ''; echo $html; }