So here is the answer, I found with the help of @miguelgraz :
fb_data = graph.get_connections(...)
fb_data.each do |t|
obj.raw_data = YAML::dump(t) #Serialize the hash
obj.save
end
and then, to retrieve data :
t = YAML::load(t) #deserialize it