1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Rep Power

    Check the username availability on Social netwroks


    I am trying to search for a library or ready-made code to check the username availability on the social networks, some thing like the below sites.

    namechk dot com
    knowem dor com

    I already found this code online for twitter, but I need at least the most popular social networks

    PHP Code:
    // fill in these 2 variables below
    $username "someusername";
    $notifyemail "your_email@address";

    // this is needed otherwise file_get_contents errors out
    $json file_get_contents($url,0,null,null);

    $http_response_header[0] == "HTTP/1.1 404 Not Found") {
    //echo "Screen name not taken!\n";
    $to      $notifyemail;
    $subject 'Screen name now available - '.$username;
    $message 'The screen name '.$username.' is now available on Twitter.';
    $headers 'From: '.$notifyemail "\r\n";
    mail($to$subject$message$headers'-f '.$notifyemail);
    else {
    // screen name exists - you can do something here if you want
            //$json_output = json_decode($json,true);

  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    According to facebook's help forum, even the official name-availability checker doesn't work. So you won't have much luck creating your own version. Plus, facebook custom names are optional, not every account has them.

    What are you doing this for? What benefit does it serve your clients to check some other site for available usernames?
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Rep Power
    I guess it's the next variant of domain grabbing.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo