简体   繁体   English

Facebook php sdk登录问题

[英]Facebook php sdk Login issue

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. 我有另一个Facebook用户,当我按登录链接时,它无法正确重定向我。 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. 要设置您的应用为实时状态,请转到“状态与评论”,您会看到该选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM