I noticed that we supply a URL while creating our app in facebook, so suppose this is URL 1
.
Then within our code we supply another redirect_uri
,
$params = array(
'scope' => $config['facebook_scope']
'redirect_uri' => $config['root'].'php/class/fbLogin.php'
);
$link = $facebook->getLoginUrl($params);
echo $link;
header('location: '.$link);
whats the purpose of site URL if we already provide a redirect Uri in our app
2- There is also something called callback URL in the creation of app.
I was just curious to know how thee 3 URls are different from each other