invite friends as web services

I have the invite friends pulgin do any one have invite friends as a web services.I tried to convert the invite friends function as web services but didnt work for me...thanks in advance