codeigniter - I put the facebook api code in my view but it does not displaying the result -
<?php $fb = new facebook\facebook([ 'app_id' => '1784359588500732', // replace {app-id} 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 facebook!</a>'; ?>
Comments
Post a Comment