没有FBML的Facebook朋友选择器

由于facebook关闭了FBML,我安装的朋友选择器选项卡不再起作用了。 有没有FBML功能的替代方案?     
已邀请:
如果用户已连接到您的页面/应用程序(即,如果他们喜欢它),您应该可以执行以下操作:
  <div id="fb-root"></div>
  <script src="http://connect.facebook.net/en_US/all.js"></script>
  <script type="text/javascript">
  FB.init({
    appId  : '<?= $app_id; ?>',
    status : true, // check login status
    cookie : true, // enable cookies to allow the server to access the session
    oauth  : true // enable OAuth 2.0
  });
  function friends() {
    FB.api('/me/friends', function(response) {
      console.log(response);
    });
  }
  </script>

  <button onclick="friends();return false;">Show friends</button>
然后由你来迭代response.data并决定做什么。我只是在一个页面上测试了它,它似乎工作正常。     
当然!寻找Requests 2.0     

要回复问题请先登录注册