title: enable user_birthday permission facebook birthday in php
body: <p>I m making a facebook app to display the birthday of a user.........</p>
  
  <pre><code>     &lt;?
           require_once('php-sdk/facebook.php');
           $config = array(
                            'appId' =&gt; 'YOUR_APP_ID',
                            'secret' =&gt; 'YOUR_APP_SECRET',
                           );
  
           $facebook = new Facebook($config);
           $user_id = $facebook-&gt;getUser();
       ?&gt;
       &lt;html&gt;
       &lt;head&gt;&lt;/head&gt;
       &lt;body&gt;
  
       &lt;?
              if($user_id) 
              {
  
                    // We have a user ID, so probably a logged in user.
                    // If not, we'll get an exception, which we handle below.
                    try 
                    {
  
                          $user_profile = $facebook-&gt;api('/me','GET');
                          echo "Name: " . $user_profile['name'];
  
                          // Birth Date to be printed here........
                         echo "DOB:  ".$user_profile['birthday'];
                    } 
                    catch(FacebookApiException $e) 
                    {
                         // If the user is logged out, you can have a 
                         // user ID even though the access token is invalid.
                        // In this case, we'll get an exception, so we'll
                        // just ask the user to login again here.
                       $login_url = $facebook-&gt;getLoginUrl(); 
                       echo 'Please &lt;a href="' . $login_url . '"&gt;login.&lt;/a&gt;';
                       error_log($e-&gt;getType());
                       error_log($e-&gt;getMessage());
                    }   
               } 
               else 
               {
  
                      // No user, print a link for the user to login
                      $login_url = $facebook-&gt;getLoginUrl();
                      echo 'Please &lt;a href="' . $login_url . '"&gt;login.&lt;/a&gt;';
  
                }
       ?&gt;
  
       &lt;/body&gt;
       &lt;/html&gt;
  </code></pre>
  
  <p>Now , the problem is <code>This prints the name as expected but prints nothing in place on date of birth</code>.......When i referred further, I heard  about the term facebook permissions (extended).....
  and from the following link
  <a href="http://developers.facebook.com/docs/reference/api/user/">http://developers.facebook.com/docs/reference/api/user/</a></p>
  
  <p>I found that we need to enable permissions <code>users_birthday</code> or <code>friends_birthday</code>.</p>
  
  <p><em><strong>Now, How do we enable it in php code ??</em></strong>...Please help with samples.......
  I m sorry if this question seems silly. I m just a new comer in facebook app developing and also a beginner in php.......
  I tried the other examples in stackoverflow.com and it didn't help me much......</p>