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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:35:59+00:00 2026-05-30T07:35:59+00:00

I am a Rails Newbie. I am using fb_graph gem to extract information. Rails

  • 0

I am a Rails Newbie.

I am using fb_graph gem to extract information. Rails 3.2.1 & Ruby 1.9.2p290

In my controller I have

@user_facebook = FbGraph::User.fetch('my.Name', :access_token => 'myaccesstoken')

In my view, I have

<%= @user_facebook.name %><br/>
<%= @user_facebook.identifier %><br/>
<%= @user_facebook.picture %><br/>
<%= @user_facebook.link %><br/>
<%= @user_facebook.username %><br/>
<%= @user_facebook.bio %><br/>
<%= @user_facebook.birthday %><br/>

The Output is displayed as it is intended but..

for <%= @user_facebook.education %> I get the entire array of objects as the facebook document says..

[#<FbGraph::Education:0x007f950bc0a088 @school=#<FbGraph::Page:0x007f950bc09d90 @identifier="134788803212663", @endpoint="https://graph.facebook.com/134788803212663", @access_token=nil, @cached_collections={}, **@name="abcdefghijkl"**, @username=nil, @category=nil, @talking_about_count=nil, @like_count=nil, @affiliation=nil, @artists_we_like=nil, @attire=nil, @awards=nil, @band_interests=nil, @band_members=nil, @bio=nil, @booking_agent=nil, @can_post=nil, @company_overview=nil, @culinary_team=nil ............. ..... ........ ....@founded=nil, @release_date=nil, @checkin_count=nil, @hours={}>>]

When I use this <%= @user_facebook.education.first %>

i get #<FbGraph::Education:0x007f950f47c330>

and

When I use this <%= @user_facebook.education.last %>

i get #<FbGraph::Education:0x007f950e4e1790>

How can I get a simple list of all the schools I went.. [its in @name] but I not sure, who to extract just that information.

Looking for help and support! Thanks!

  • 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-30T07:36:00+00:00Added an answer on May 30, 2026 at 7:36 am

    Based on my reading of the code for FbGraph::Education it should be @user_facebook.education[0].school. It is an object with attrs to access for information.

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

Sidebar

Related Questions

I am a Rails newbie. I am using has_secure_password in the user controller. I
I'm newbie to ember.js. I'm trying to integrate ember.js with Rails using ember-rails gem.
A rails newbie here I have 2 actions in my controller 1) index 2)
I have added the Devise gem to the ruby on rails app version 1.8.7.
Apologies -- I'm a newbie using Ruby on Rails. Still a little confused about
I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I am
I am newbie in Ruby. I installed by following this tutorial: http://udooz.net/blog/2011/02/facebook-app-using-rails-koala/ Now, when
I'm a jquery/rails newbie and I'm having trouble using .sortable(). I have expandable rows
another newbie-question regarding rails and bootstrap. I am using something like this: <div class=tabbable
I am Rails newbie and having some trouble passing parameters to form. I have

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.