|
Message non lu
j ai ce code la mais je ne sais pas ou l implanté
$fb = new Facebook\Facebook([ 'app_id' => '{app-id}', // Replace {app-id} with your app id 'app_secret' => '{app-secret}', 'default_graph_version' => 'v2.2', ]);$helper = $fb->getRedirectLoginHelper();$permissions = ['email']; // Optional permissions$loginUrl = $helper->getLoginUrl('https://example.com/fb-callback.php', $permissions);echo '<a href="' . htmlspecialchars($loginUrl) . '">Log in with Facebook!</a>';
Sapkero |