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 6661253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:15:24+00:00 2026-05-26T02:15:24+00:00

my FB.login(function ends with scope as it should: }, {scope:’user_birthday,friends_birthday’}); after the user logs

  • 0

my FB.login(function ends with scope as it should:

}, {scope:'user_birthday,friends_birthday'});

after the user logs in the function permissionsTest() fires:

function permissionsTest(){
    FB.api('me/friends?fields=birthday', {fields:'birthday'}, function(response) { 
        alert(response.data[1]);
        });
}

But all the alert returns is: [object Object] when I am trying to see something like: 12/09/1983

How should this work?

see: graph.facebook.com/me/friends?fields=birthday

You can clearly see that there is an object called “data” holding an array of objects called “id” and “birthday”

My previous attempts:
response.data[1] returns [object Object]
response returns [object Object]
response.data[1].id returns undefined
response.data[1].birthday returns undefined
response.id returns undefined
response.birthday returns undefined

I can’t seem to get it right and I feel I have exhausted the docs, stack and google.

  • 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-26T02:15:25+00:00Added an answer on May 26, 2026 at 2:15 am

    Some of the friends birthdays may be null. Check out the response with the Facebook Graph API Explorer:

    {
      "data": [
        {
          "birthday": "03/03", 
          "id": "997"
        }, 
        {
          "id": "998"
        },
        {
          "birthday": "05/06/1986", 
          "id": "999"
        }
    ]
    

    This was returning data for me:

    FB.api('me/friends?fields=birthday', {fields:'birthday'}, function(response) { 
      for (var i = 0; i < response.data.length; i++) {
        alert(response.data[i].birthday);
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the login function (after I validate user name and password, I load
Joomla has a built-in function on its login screen I've forgotten my user name,
I am testing my login function at my server (auto ip ban after x
I have a login page which the user logs in with a username and
I'm using login function in my site with session. This session of mine gets
I am new to php and trying to write a login function. Bit stuck
Can anyone see anything wrong with this login script: public function login($username, $pass, $remember)
I have this jQuery: $(document).ready(function() { $(#panel).hide(); $('.login').toggle( function() { $('#panel').animate({ height: 150, padding:20px
why won't this work? function login(){ if(window.XMLHttpRequest){ ajax=new XMLHttpRequest(); }else if(window.ActiveXObject){ ajax=new ActiveXObject(Microsoft.XMLHTTP); }
I got this from for a login form tutorial: function sanitize($securitystring) { $securitystring =

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.