Add contact in facebook and MySpace using external website

Hi there,

I would like to add contacts from my application to directly in my facebook and myspace friends list using ruby on rails.

If any one has any idea, kindly suggest or send me sample code at pooran.joshi@gmail.com

I am able to link with facebook using plugins and I can fetch my profile detail as well as list of friends , but I need to add contacts in my facebook through my applications.

Please help me out this is quite urgent.

Thanks in advance

Puran

I would look at the Facebook API from their website.