Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4610470
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:08:09+00:00 2026-05-22T01:08:09+00:00

I am loading the JavaScript SDK Asynchronously for my iframe canvas application. I am

  • 0

I am loading the JavaScript SDK Asynchronously for my iframe canvas application.

I am aware that fbml is deprecated and being phased out, but is xfbml still ok?

Can I still use fb:name eg. <fb:name uid="2901279">?

Is there a better way to print the names of 100 friends for a user, for example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:08:10+00:00Added an answer on May 22, 2026 at 1:08 am

    You need to start using the Graph API, here’s a quick working example to get you started:

    <!doctype html>
    <html xmlns:fb="http://www.facebook.com/2008/fbml">
    <head>
    <title>Facebook Javascript SDK</title>
    </head>
    <body>
        <div><fb:login-button perms=""></fb:login-button></div>
    
        <div id="friends"></div>
    
    
        <div id="fb-root"></div>
        <script>
          window.fbAsyncInit = function() {
            FB.init({
              appId   : 'APP_ID',
              cookie  : true,
              status  : true,
              xfbml   : true 
            });
    
            FB.Event.subscribe('auth.login', function(response) {
              window.location.reload();
            });
    
            FB.api('/me/friends',function(resp) {
                if(resp && resp.data.length) {
                    var html = '<ul>';
                    for(var i=0; i<resp.data.length; i++) {
                        html += '<li><img src="http://graph.facebook.com/' + resp.data[i].id + '/picture?type=small" />' + resp.data[i].name + '</li>';
                    }
                    html += '</ul>';
                    document.getElementById('friends').innerHTML = html;
                }
            });
          };
    
          (function() {
            var e = document.createElement('script');
            e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
            e.async = true;
            document.getElementById('fb-root').appendChild(e);
          }());
        </script>
    </body>
    </html>
    

    Just replace with your application id and you are good to go!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm loading javascript files in the bootstrap as usual, but there's a file that
I have an ActiveX control that I'm loading with JavaScript in Internet Explorer. It
I'm loading a stylesheet that is only required when javascript is enabled. More to
I am loading javascript file in webview but If I double click a web
I've found that loading the same javascript file twice or more (via PHP) can
I am building Javascript application for mobile browsers (not wrapped-as-native app). I noticed that
I am embeding SpiderMonkey (mozila javascript) interpreter/engine in my C/C++ application. i programatically loading
I have a local website that is Javascript controlled and am loading it in
I'm loading AJAX content that contains a javascript function inside the AJAX content. I'm
I am having issues with loading external javascript using JQuery. Every time when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.