This is the link where I develop. I'm wondering why this script is working only for me ? I have another facebook user and when i press the login link it does not redirect me properly. WHY ???
<?php
require '../src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'XXXXXXXX',
'secret' => 'XXXXXXXX',
'cookie' => true
));
?>
<?php
$user = $facebook->getUser();
$loginUrl = $facebook->getLoginUrl(array (
//'scope' => 'publish_stream,user_groups,user_about_me,user_interests,friends_groups,friends_interests,friends_about_me',
'scope' => 'email',
'redirect_uri' => 'http://facebook.ebis-servicii.ro/mytest/test.php'
));
echo '<a href = "'.$loginUrl.'">Login Here </a> ';
?>
this is my set and reviews:
I think this is because your app is still in development mode. That means your app isn't available to people who aren't administrators, developers or testers (as set in "Roles" within the app's settings).
So it appears as if the app just does not exist (no redirect etc.).
To set your app live, go to "Status & Review" and you'll see the option.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.