object.each do |info|
@user_work_history.fb_user_id = facebook_session.user.id
@user_work_history.city = info.location.city
@user_work_history.country = info.location.state
@user_work_history.company_name = info.company_name
@user_work_history.description = info.description
@user_work_history.start_date = info.start_date
@user_work_history.end_date = info.end_date
@user_work_history.position = info.position
@user_work_history.updated_at = Time.now
@user_work_history.save
end
here is the code but inside loop data is not saving only one record is saved.