Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8504705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:06:38+00:00 2026-06-11T02:06:38+00:00

I have a very simple Facebook app based on this authentication code: $session =

  • 0

I have a very simple Facebook app based on this authentication code:

$session = $facebook->getUser();

if (!$session) {
    $url = $facebook->getLoginUrl(array(
               'canvas' => 1,
               'fbconnect' => 0,
               'scope' => 'publish_stream, email, user_activities, user_birthday, user_hometown'
               //'req_perms' => 'publish_stream,email,user_location,user_birthday,user_hometown'
           ));
    echo "<script type='text/javascript'>top.location.href = 'FB_URL';</script>";
} else {
    try {
        $uid = $facebook->getUser();
        $me = $facebook->api('/me');
    } catch (FacebookApiException $e) {
        echo "<script type='text/javascript'>top.location.href = 'FB_URL';</script>";
    exit;
    } 
}

echo "\n === \n";
print_r($uid);
echo "\n === \n";
print_r($me);

The output is:

=== ID_VALUE === Array ( [id] => ID_VALUE [name] => NAME [first_name] => FIRST_NAME [last_name] => LAST_NAME [link] => PROFILE_URL [username] => USERNAME [gender] => male [email] => EMAIL [timezone] => 2 [locale] => en_US [verified] => 1 [updated_time] => 2012-05-16T13:00:04+0000 )

I would expect that after specifying the extended permissions user_birthday and user_hometown I should get in the array also the information about users’ birthday and hometown… but unfortunately these information are missing there…

Am I missing something or what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:06:39+00:00Added an answer on June 11, 2026 at 2:06 am

    I did some investigation,

    Can you try this: $me = $facebook->api('/me?fields=birthday'); and

    for the scope – you request right permission, it’s user_birthday

    Make sure your $facebook object has access_token

    Take a look and report back, i will try to help.

    EDIT:
    I don’t understand where from you get FB_URL, since you write LoginUrl in $url variable
    I reviewed your code and suggest you to try this way:

    if (!$session) {
        $url = $facebook->getLoginUrl(array(
                  'redirect_uri' => //SET back to your page or whenever you need
                   'scope' => 'publish_stream, email, user_activities, user_birthday, user_hometown'          
               ));
        echo '<script type="text/javascript">top.location.href =' . $url . '</script>';
    } else {
        try {           
            $me = $facebook->api('/me');
        } catch (FacebookApiException $e) {
            echo $e->getMessage();       
        } 
    }
    

    Additionally validate user access token for all rights
    Get $facebook->getAccessToken(); and debugit here -> Token debugger

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay this question is very simple: I have a facebook page, and a website.
This is the code I am using to hopefully create a very simple app
I have written for a very simple app of mine . To login facebook
I have a very simple question. In FB tutorial https://developers.facebook.com/docs/mobile/ios/build/ it starts to login
I have a (currently very simple) website that is utilising Facebook's Website with Facebook
I have very simple piece of code. The goal is when i input four-digit
I have a very simple test page at http://student.cqu.edu.au/s0147794/ . It has an og:url
I have very simple form, with input like this: <input id=my_id multiple=true type=file name=image_name[]
I have very simple select like this: SELECT * FROM table WHERE column1 IN
I have very simple OpenGL ES example similar to Hehe's example : http://nehe.gamedev.net/tutorial/ios_lesson_02__first_triangle/50001/ As

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.