# Getting the friends contacts mail Id of gmail,hotmail,yahoo,myspace in RoR

**URL:** <https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790>\
**Category:** Rails\
**Created:** [May 16, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790 "2008-05-16T12:30:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Post date:** [May 16, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790/1 "2008-05-16T12:30:49Z")

</div>

Hello friends,

I am developing an application in RoR. After registration in this  
application I follow the following steps:

1. Enter the hotmail,gmail,aol email id.
2. Enter password according to that mail id.

After submitting this information, I want to get the contacts in that  
my mail id. How can I do this. Whenever I login next time, my contacts  
should be there in the list of my application.

Pls visit [http://www.spokeo.com](http://www.spokeo.com) for this functionality.

There is many gems for it, but I didn’t get any right solution.  
Please let me know if u have any query about it.

Thanks  
Raj Kumar Goyal

---

<div class="post-metadata">

**Author:** ![Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Post date:** [May 16, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790/2 "2008-05-16T13:36:18Z")

</div>

The blackbook gem works for me:  
[http://rubyforge.org/projects/contentfree/](http://rubyforge.org/projects/contentfree/)

Tiago M.

---

<div class="post-metadata">

**Author:** ![Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Post date:** [May 19, 2008, 6:37am UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790/3 "2008-05-19T06:37:53Z")

</div>

Tiago M. wrote:

> The blackbook gem works for me:  
> [http://rubyforge.org/projects/contentfree/](http://rubyforge.org/projects/contentfree/)
> 
> Tiago M.

Thanks for help.

---

<div class="post-metadata">

**Author:** ![Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Post date:** [November 12, 2008, 11:20am UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790/4 "2008-11-12T11:20:10Z")

</div>

hi,

Please help me!!!

am using ruby-1.8.6  
gem blackbook-1.0.4

output is @contacts.inspect(collection of Emails and name)

I got this error :  
undefined method `name’ for {:email=\>“removed\_email\_address@domain.invalid”, :name=\>“aaa”}:Hash

please give me further solution… please…

Thankyou.

---

<div class="post-metadata">

**Author:** ![Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Post date:** [November 12, 2008, 11:05am UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790/5 "2008-11-12T11:05:59Z")

</div>

hi,

Please help me!!!

am using ruby-1.8.6  
gem blackbook-1.0.4

output is @contacts.inspect(collection of Emails and name)

please give me further solution… please…

Thankyou.

---

<div class="post-metadata">

**Author:** ![Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Post date:** [May 11, 2009, 9:02am UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo-myspace-in-ror/137790/6 "2009-05-11T09:02:08Z")

</div>

Smarty 2k wrote:

> hi,
> 
> Please help me!!!
> 
> am using ruby-1.8.6  
> gem blackbook-1.0.4
> 
> output is @contacts.inspect(collection of Emails and name)
> 
> I got this error :  
> undefined method `name’ for {:email=\>“removed\_email\_address@domain.invalid”, :name=\>“aaa”}:Hash
> 
> please give me further solution… please…
> 
> Thankyou.

Hi smarty,

I got the same error, for this i changed my view like this,

\<%= contact[:name] if !contact.blank? %\>

I hope this can helps you.

Thank You.
