我有以下代码可以在浏览器上完美运行,但在iPad上却不行,我也怀疑iPhone虽然还没有测试过:
require '/home/****/php_/lib/fb_libs/facebook.php';
require '/home/****/php_/lib/fb_libs/fbconfig.php';
session_start();
$facebook = $_SESSION['facebook'];
$userdata = $_SESSION['userdata'];
echo "Your email address is ".$userdata['email']."<br /><br />";
echo "Your name is ".$userdata['name']."<br /><br />";
echo "Your Facebook ID is ".$userdata['id']."<br /><br />"; die;
iPad 根本不返回变量$userdata[*]
。
关于 RE iPad,我应该知道什么不同的东西吗?我正用这个把头发扯下来。
这是浏览器上的结果:
Your email address is darren@email.com
Your name is Darren Sweeney
Your Facebook ID is 123456789
在 iPad 上
Your email address is
Your name is
Your Facebook ID is