Take the 2-minute tour ×

I'm developing an app which gets the birthday date of the user but it's still not working. The most strange thing is that whe i debug this app throw the developer facebook interface, it works perfectly. So I don't know why doesn't it want to work. Here is my php code for getting the birthday :

if($user_id) {

  try {

    $user_profile = $facebook->api('/me?fields=id,name,birthday', 'GET');

  } catch(FacebookApiException $e) {
    // user ID even though the access token is invalid.
    // just ask the user to login again here.
    $login_url = $facebook->getLoginUrl(); 
} else {

  $login_url = $facebook->getLoginUrl();



Thanks to anybody

share|improve this question
You are not asking for the permission required to get the user’ birthday. Please check the docs. –  CBroe Mar 4 '13 at 12:37
add comment

1 Answer

As noted by CBroe, you need user_birthday in your permissions scope

$params = array(
  'scope' => 'user_birthday',
  'redirect_uri' => 'https://www.myapp.com/post_login_page'

share|improve this answer
add comment

Your Answer


