简体   繁体   中英

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? 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>

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.

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