How do I invite people from MSN, Yahoo into my application?

☆樱花仙子☆ 提交于 2019-12-24 06:00:09

问题


I need to add an invite users functionality to my social networking application so users can invite contacts from their hotmail or yahoo accounts. How do I do this and are there any free open source libraries that do this?


回答1:


Depending on the service you wish to get the contact information from they might already provide a published API for you.

For example, Yahoo has a contact list API you could use: http://developer.yahoo.com/social/rest_api_guide/contact_api.html

Google also has one: http://code.google.com/apis/contacts/

And so does Windows Live: http://msdn.microsoft.com/en-us/library/bb463974.aspx

If you need something to work with a service without an API then you might have to ask that user for his username and password, use it temporarily to log into his account, download the contact information and then discard the login details. There are obvious privacy and security issues with this approach, however. Nevertheless, it is used quite frequently by many social networking sites.

The same approach can also be used to retrieve buddy information from instant messaging services. You log in (perhaps using an open source IM API) and get their buddy list and contact details.




回答2:


Just in case anyone was interested - I would like to share this neat piece of code I found off the web. Its free and very easy to setup and integrate. http://openinviter.com is php based and you can extract email contacts from just about any address book there is.

You just need to have curl set up for this.



来源:https://stackoverflow.com/questions/915311/how-do-i-invite-people-from-msn-yahoo-into-my-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!