[英]facebook api - get email with <fb:>
I have for facebook: 我有脸书:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>head</title>
</head>
<body>
<h1>head</h1>
<p><fb:login-button autologoutlink="true"></fb:login-button></p>
<p><fb:like></fb:like></p>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: '111111111111', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
</body>
</html>
what i must edit in this that get email address? 我必须在获取电子邮件地址的内容中进行什么编辑? i must use library facebook.php and login and logout with variables $loginUrl and $logoutUrl? 我必须使用库facebook.php并使用变量$ loginUrl和$ logoutUrl登录和注销? I would like use 我想用
<p><fb:login-button autologoutlink="true"></fb:login-button></p>
没有通过xfbml获取电子邮件的已知方法。
<fb:login-button autologoutlink="true" scope="email"></fb:login-button>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.