Yahoo Invite All Friends Address Book Import Source Code in PHP

Posted By: KP On September 18, 2010 Under Internet, Other, Programming, Yahoo Categories


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.

ylogo

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”.



Share with Friends ( Sharing is Caring! )


Subscribe For E-mail Notification Of Article Updates

Enter your email address:

NOTICE:
DO NOT FORGET TO CLICK ON THE VERIFICATION LINK AFTER SUBSCRIBING,THE VERIFICATION MAIL WILL BE SENT TO YOU FROM "FeedBurner Email Subscriptions".
( What is this? Why I need to do this?)

Related Posts

18 responses. Wanna say something?

  1. Jinal
    Sep 18, 2010 at 11:59:12
    #1

    nice..

    [Reply]

  2. Vineet
    Jun 26, 2011 at 19:13:30
    #2

    Everything works fine but U didn’t add lib folder in the yahoo.zip
    thanks 4 the share

    [Reply]

    Johnel Reply:

    Hello,
    How Aouth.php file can be saved? You can put the content folder “lib” to download?
    Thank you!

    [Reply]

    KP Reply:

    I have given necessary files. Lib can be downloaded from yahoo server. I cannot upload or redistribute it.

    [Reply]

  3. manoj
    Jul 23, 2011 at 11:23:47
    #3

    Its not working …and also library files is missing in your zip.

    Please add working example.

    ————
    codespider

    [Reply]

  4. jason
    Oct 4, 2011 at 16:50:26
    #4

    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:

    Just make array of email ids and use php mail function. I have done it in the code though.

    [Reply]

    Sreypov Reply:

    Hai all !

    i am run this code. it’s show errors a lot as :

    Warning: session_start() [function.session-start]: open(/tmp/\sess_1uj8utlikmks943q0tbt64q8a2, O_RDWR) failed: No such file or directory (2) in D:\wamp\www\yahoo_invite_all\index.php on line 15

    Warning: Unknown: open(/tmp/\sess_1uj8utlikmks943q0tbt64q8a2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/) in Unknown on line 0

    pleas shear me some idea to solve it . thanks very much …….

    [Reply]

  5. Thuone Em
    Feb 14, 2012 at 11:19:12
    #5

    not works. please check again.

    [Reply]

  6. Avinash Madbhave
    Mar 8, 2012 at 17:57:44
    #6

    Thanks Kunal Pradhan…. your code work for me 🙂 .

    I get lib folder from https://github.com/yahoo/yos-social-php.git repo.

    [Reply]

  7. Pearl
    May 11, 2012 at 17:04:34
    #7

    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]

  8. Sreypov
    Dec 12, 2012 at 15:43:07
    #8

    Hai Dear! with you code, but have some problem with some errors:
    Warning: session_start() [function.session-start]: open(/tmp/\sess_1uj8utlikmks943q0tbt64q8a2, O_RDWR) failed: No such file or directory (2) in D:\wamp\www\yahoo_invite_all\index.php on line 15

    Warning: Unknown: open(/tmp/\sess_1uj8utlikmks943q0tbt64q8a2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/) in Unknown on line 0
    please give me some idea to solve it. Very thanks

    [Reply]

  9. Sreypov
    Dec 13, 2012 at 07:42:00
    #9

    Hai …! I have test your code in my server already! yes it’s no errors as before but it’s still nothing show list of my yahoo friend just popup a small browser the same interface in your index page. please check your code again dear. thanks

    [Reply]

  10. V Devan
    Dec 15, 2012 at 17:10:51
    #10

    Hai Dear! Me also tried to work in Ur code but it’s still nothing show list of my yahoo friend just popup a small browser the same interface in your index page.
    please check your code again dear. thanks

    [Reply]

  11. pooja
    Mar 23, 2013 at 11:59:46
    #11

    Its working flowlessly..

    [Reply]

  12. kashif
    Jun 8, 2013 at 00:48:28
    #12

    hi all

    i use this code but i got the following errors.

    Strict Standards: Non-static method YahooLogger::setDebug() should not be called statically in /var/www/html/zigime/yahoo_invite_all/index.php on line 9

    Strict Standards: Non-static method YahooLogger::setDebugDestination() should not be called statically in /var/www/html/zigime/yahoo_invite_all/index.php on line 10

    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /var/www/html/zigime/yahoo_invite_all/index.php:9) in /var/www/html/zigime/yahoo_invite_all/index.php on line 15

    Strict Standards: Non-static method YahooSession::hasSession() should not be called statically in /var/www/html/zigime/yahoo_invite_all/index.php on line 32

    Strict Standards: Non-static method YahooSession::initSession() should not be called statically in /var/www/html/zigime/yahoo_invite_all/lib/Yahoo.inc on line 398

    Strict Standards: Non-static method YahooSession::checkSession() should not be called statically in /var/www/html/zigime/yahoo_invite_all/lib/Yahoo.inc on line 555

    Strict Standards: Non-static method YahooUtil::current_url() should not be called statically in /var/www/html/zigime/yahoo_invite_all/index.php on line 36

    plz help me.

    [Reply]

  13. shah
    Aug 25, 2013 at 14:35:43
    #13

    It is not working man.After signing in with yahoo pop up window when i press agree button it redirects me to my website index.php or you may say it as main page.Please tell me why it is happening

    [Reply]

  14. shubham verma
    Sep 21, 2013 at 15:17:44
    #14

    Yes you are right say, m facing same above problem.
    This code have many error.

    [Reply]

Post a Comment

OR