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

  • SEARCH
  • Home
  • 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 8304001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:41:52+00:00 2026-06-08T17:41:52+00:00

I have a simple login app to utilize oAuth for facebook. I will need

  • 0

I have a simple login app to utilize oAuth for facebook.
I will need to access a few things about the user so i added a few parameters in the
User & Friend Permissions

enter image description here

I waited over 24 hours for the servers to propagate but when i debug the token, i dont see these permissions added to the scope
enter image description here

I grabbed the token by:

<?php
require '../src/facebook.php';
$facebook = new Facebook(array( 
        'appId'  => '**************',
    'secret' => '**********************************'
));

// Get User ID
$user = $facebook->getUser();

$token = $facebook->getAccessToken();
echo $token;


if ($user) {
    try {
        $facebook->setFileUploadSupport(true);

        $album = $facebook->api('/me/albums ');
        print_r($album);

    } catch (FacebookApiException $e) {
        error_log($e);
        $user = null;
    }
}


?>
<!doctype html>
<html xmlns:fb="http://www.facebook.com/2008/fbml">
    <head>
        <title>php-sdk</title>
        <style>
            body { font-family: 'Lucida Grande', Verdana, Arial, sans-serif; }
            h1 a { text-decoration: none; color: #3b5998; }
            h1 a:hover { text-decoration: underline; }
        </style>
    </head>
    <body>
        <h1>php-sdk</h1>

        <?php if ($user): ?>
            <a href="<?php echo $logoutUrl; ?>">Logout</a>
        <?php else: ?>
            <div>
                Login using OAuth 2.0 handled by the PHP SDK:
                <a href="<?php echo $loginUrl; ?>">Login with Facebook</a>
            </div>
        <?php endif ?>

        <h3>PHP Session</h3>
        <pre><?php print_r($_SESSION); ?></pre>

        <?php if ($user): ?>
            <h3>You</h3>
            <img src="https://graph.facebook.com/<?php echo $user; ?>/picture">

            <h3>Your User Object (/me)</h3>
            <pre><?php print_r($user_profile); ?></pre>
        <?php else: ?>
            <strong><em>You are not Connected.</em></strong>
        <?php endif ?>

        <!--h3>Public profile of Naitik</h3>
        <img src="https://graph.facebook.com/naitik/picture"-->
        <?php //echo $naitik['name']; ?>
    </body>
</html>

What am I missing?
any help please, thank you.

  • 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-08T17:41:54+00:00Added an answer on June 8, 2026 at 5:41 pm

    Changing needed permission after user installed make you need to ask for the new permission.

    So you can uninstall and install again, or make a JS to check if your user have the necessary permission and, if not, ask using FB.ui

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

Sidebar

Related Questions

I'm wondering about this: I have a simple facebook-connect app that will only show
I have created a simple Facebook app and added it as a tab page.
I have created a simple facebook login page at: http://bit.ly/Ims3U6 In the app settings:
I have a simple app where you can login it looks like this: {{#view
I have a simple GAE app that includes a login/logout link. This app is
I have created a simple Facebook application in PHP, that greets user by there
When starting the app, if the user doesn't have login information stored, I want
I'm looking to deploy a web app and I have a simple question about
I have a silverlight app that uses a simple Login.aspx page. I have all
I have a simple php login page. When user and password is correct i

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.