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 7075475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:10:55+00:00 2026-05-28T06:10:55+00:00

I have been stuck with this problem for a while now, and I just

  • 0

I have been stuck with this problem for a while now, and I just gave up today, I realized I really badly need help, and i couldn’t find any posts addressing a similar issue.. so

I am trying to create a facebook app (since jan 1 2012 – incase there has been any standards change, you guys can tell me about it), and I have properly set my canvas url.

So right now when you visit my app on facebook, as apps.facebook.com/canvas-page you can see my app. However I am having problem with authentication.

My app requires basic information, and email address of the user trying to access it.

So as far as I have gotten so far, I have set it so that new users can see the authentication dialog and then visit my app. On visiting my app I want my app to be able to access the information as I stated above. However on my canvas page I did the following for code in php, and nothing else, I want to be able to see what information is passed on to my app by the facebook referral from the authentication dialog:

    <?php 
    print_r($_GET);
    echo "\n";
    print_r($_POST);
    ?>

However sadly this is giving me empty arrays, and nothing else.

All I really need for my Facebook app is the access_token, and the user id, although I am pretty sure I can access the current user’s id by visiting graph.facebook.com/me?access_token=[access token provided from somewhere]

so thats my first problem, second problem is that when I logout of facebook and I visit apps.facebook.com/canvas-page I don’t get asked to login, why is that so? Do I have to redirect to Facebook using JavaScript to login and then refer to my app?

Currently these are my settings (ask for more info so that i can give them to you)
Settings > Auth Dialog > Authenticated referrals > User & Friend permission = email
Settings > Auth Dialog > Authenticated referrals > Auth Token parameter = ?code=

Settings > Advanced > migrations = ALL ENABLED

  • 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-05-28T06:10:55+00:00Added an answer on May 28, 2026 at 6:10 am

    FB use Signed Request to send data to your app (not $_POST, not $_GET). There is a chapter called signed_request Parameter in Sample Canvas App that talk about it.

    Using php-sdk you can obtain it like this:

    $signed_request = $facebook->getSignedRequest();
    
    var_dump($signed_request);
    
    array (
      'algorithm' => 'HMAC-SHA256',
      'expires' => 1326632400,
      'issued_at' => 1326628636,
      'oauth_token' => '***',
      'page' => 
      array (
        'id' => '***',
        'liked' => false,
        'admin' => true,
      ),
      'user' => 
      array (
        'country' => 'cl',
        'locale' => 'en_US',
        'age' => 
        array (
          'min' => 21,
        ),
      ),
      'user_id' => '***',
    )
    

    Besides you can pass a parameter called app_data through URL:

    "http://www.facebook.com/YourPage?v=app_1234567890&app_data=any_string_here"
    

    You will get it in the $signed_request too.

    ...
    array (
      'algorithm' => 'HMAC-SHA256',
      'app_data' => 'any_string_here',
      'expires' => 1326636000,
      'issued_at' => 1326629411,
    ...
    

    Please comment! Thanks.-

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

Sidebar

Related Questions

I have been stuck on this problem for a while now. I want to
I've been stuck on this problem for a while now and have tried my
This is something I've been stuck on for a while now, and I have
I'm stuck in this problem for quite while now. I have two tables ItemMaster
I have been looking for a solution to this problem for a while now
Hope to get solution to this problem. I have been stuck on it since
I've been stuck with this for weeks now and have no idea where I'm
I am stuck with this problem for a while now and I am hoping
I have this template I have been working with and I am really stuck
i've been stuck in this loop for a while. Basically i have a slider

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.