每 30 到 50 名参与者中就有 1 人未能收到用户的电子邮件数据
以下是APP审核通过后加载Facebook用户邮箱的代码源码。 存在的问题是,每30到50个参与者中就有1个未能收到用户的电子邮件数据。 您能帮我们检查一下代码源来解决这个问题吗?
// FQL Call
$fql = "SELECT email, name from user where uid = ".$facebook_id;
$profile = $facebook->api(array(
"method" => "fql.query",
"query" => $fql,
));
$name = $profile[0]["name"];
$email = $profile[0]["email"];
// Registration
$query = "INSERT INTO `facebook_data` (`name`, `email`) VALUES ('".$name."', '".$email."');";
$result = mysql_query($query);
谢谢你!
Following is the code sources that loading the Facebook user’s email after the approval of the APP.
There is the problem that we are fail to receive an user’s email data 1 in every 30 to 50 participants.
Could you please check the code sources for us to solve this problem?
// FQL Call
$fql = "SELECT email, name from user where uid = ".$facebook_id;
$profile = $facebook->api(array(
"method" => "fql.query",
"query" => $fql,
));
$name = $profile[0]["name"];
$email = $profile[0]["email"];
// Registration
$query = "INSERT INTO `facebook_data` (`name`, `email`) VALUES ('".$name."', '".$email."');";
$result = mysql_query($query);
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论