Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jtech's avatar
Level 1

login api

require_once ('Facebook/autoload.php');

$fbObject = new \Facebook\Facebook([ 'app_id' => 'id', 'app_secret' => 'code', 'default_graph_version' => 'v2.10', ]);

$helper = $fbObject ->getRedirectLoginHelper();

$redirectTo = "http://localhost/blog1/callback.php"; $data = ['name']; $fullUrl = $helper->getLoginUrl($redirectTo,$data); echo 'Log in with Facebook!';

onclick this link go to https://www.facebook.com/v2.10/dialog/oauth?client_id=00000000000 and so on but i am requesting it will go on http://localhost/blog1/callback.php?..........

0 likes
4 replies
jlrdw's avatar

Was this meant as a question or a how to.

Please or to participate in this conversation.