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

  • Home
  • SEARCH
  • 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 8022951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:25:07+00:00 2026-06-04T22:25:07+00:00

I encounter something annoying while playing around with the facebook graph API. I’m using

  • 0

I encounter something annoying while playing around with the facebook graph API. I’m using fb_graph which is a ruby wrapper for the facebook sdk. I’m not sure if this issue I encounter is a limitation of the facebook sdk or I should contact the owner of fb_graph.

So, using fb_graph, this is how I would connect to a user:

jane = FbGraph::User.fetch('janeid', :access_token => "janeaccesstoken")

jane.friends will list all of jane’s friends. However, if I try to get jane’s friends birthday or email, it returns nil. In other words,

jane.friends[0].birthday => nil

But, I can access friends[0] birthday this way:

bill = FbGraph::User.fetch(jane.friends[0].id, :access_token => "janeaccesstoken")

In other words, if I wanted a list of all jane’s friends’ birthdates, I cannot do this:

@jane.friends.each do |friend|
  puts friend.birthday
end

instead, it will have to be something like this

@jane.friends.each do |friend|
  friendname = FbGraph::User.fetch(friend.id, :access_token => "janeaccesstoken")
  puts friendname.birthday
end

I guess it’s not too bad but it does make me wonder why this is the case, because actually only some info is nil. Name, for example, is not.

@jane.friends.each do |friend|
  puts friend.name # => works!
end
  • 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-06-04T22:25:08+00:00Added an answer on June 4, 2026 at 10:25 pm

    The answer is here:
    https://github.com/nov/fb_graph/issues/237.

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

Sidebar

Related Questions

Today while i was coding , I encounter something which I didn't expect it
When using Visual Studio I often encounter situations when the IDE freezes while performing
This is something I encounter frequently, but I don't know the elegant way of
I encounter the following small annoying dilemma over and over again in Python: Option
I encounter identical issues with some Ruby gems in Rails application. When I use:
I've encounter a weird problem with C# threading. This is my sample program using
I started using OutputCache for my website. The problem that I encounter is that
I encounter a very strange situation with safari while not with other browsers (FF,
Its a general question about something i seem to encounter a lot: When should
Following is the scenario. I have something called as Domain which can have multiple

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.