Invite all feature is best option for viral marketing of your website/ product. If you site is having invite all function, users will invite their friends and bring many new users for free. When you try to get this many users from any PPC marketing you will need to spend in sum thousands dollars.
Unfortunately, address book holding companies (Yahoo, Gmail, MSN) do not provide direct import features/ source codes. All they give is API. Not all web masters are coders. So here I am releasing easiest embed type Yahoo address book import source code.
The source code is written using oAuth in PHP. One of the main feature of the script is no password is required.
Demo: http://www.terabug.com/yahoo/
Step 1: Create Application key for your domain. Select Contact API when you are asked which yahoo APIs your app needs.
Visit https://developer.apps.yahoo.com/dashboard/createKey.html
Step 2: Download source code of Address book import http://www.terabug.com/files/yahoo_invite_all.zip
Step 3: Edit config.php and replaced required parameters, keys that you got in step 1.
Your Yahoo Invite All Friends tool is working now, just embed it anywhere you wish to.
Terms of Use: A follow back link to www.terabug.com must stay below window where imported email list appears, titled “Yahoo Address Book Import Tool From TeraBug”.
Sep 18, 2010 at 11:59:12
nice..
[Reply]
Jun 26, 2011 at 19:13:30
Everything works fine but U didn’t add lib folder in the yahoo.zip
thanks 4 the share
[Reply]
Johnel Reply:
July 28th, 2011 at 4:18 pm
Hello,
How Aouth.php file can be saved? You can put the content folder “lib” to download?
Thank you!
[Reply]
KP Reply:
August 4th, 2011 at 4:32 pm
I have given necessary files. Lib can be downloaded from yahoo server. I cannot upload or redistribute it.
[Reply]
Jul 23, 2011 at 11:23:47
Its not working …and also library files is missing in your zip.
Please add working example.
————
codespider
[Reply]
Oct 4, 2011 at 16:50:26
Thanks for sharing the code. The first part is working for me. Now I need to find out how to send the mail to the recipients. Again, Thanks a lot.
[Reply]
KP Reply:
October 4th, 2011 at 7:12 pm
Just make array of email ids and use php mail function. I have done it in the code though.
[Reply]
Feb 14, 2012 at 11:19:12
not works. please check again.
[Reply]
Mar 8, 2012 at 17:57:44
Thanks Kunal Pradhan…. your code work for me
.
I get lib folder from https://github.com/yahoo/yos-social-php.git repo.
[Reply]
May 11, 2012 at 17:04:34
This code is not working. I have uploaded all code and replace key and all related details with my app but it still just open popup windows. Nothing else happens……
Plz advice
[Reply]