<?php
$fb = new Facebook\Facebook([
'app_id' => '1784359588500732', // Replace {app-id} with your app id
'app_secret' => '30138893272d147c8388759e4da8951a',
'default_graph_version' => 'v2.2',
]);
$helper = $fb->getRedirectLoginHelper();
$permissions = ['sabat989@gmail.com']; // Optional permissions
$loginUrl = $helper->getLoginUrl('http://dev.solidbrandworks.com/swatchmumbai/fb-callback.php', $permissions);
echo '<a href="' . htmlspecialchars($loginUrl) . '">Log in with Facebook!</a>';
?>