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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:18:26+00:00 2026-05-20T22:18:26+00:00

I have seen examples of accessing users data in canvas application with oAuth and

  • 0

I have seen examples of accessing users data in canvas application with oAuth and graph api. But what I want to do is access user data such as the name, email address and photo within a page tab application. I have looked around and seen no examples. I am wondering if this is possible and how I would access the user data and yes I would like to do it through oAuth(asking them for the data).

Best Regards

  • 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-20T22:18:27+00:00Added an answer on May 20, 2026 at 10:18 pm

    It’s the same exact way you do it for Canvas Apps:

     <?php 
    
         $app_id = YOUR_APP_ID;
    
         $canvas_page = YOUR_CANVAS_PAGE_URL;
    
         $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" 
                . $app_id . "&redirect_uri=" . urlencode($canvas_page);
    
         $signed_request = $_REQUEST["signed_request"];
    
         list($encoded_sig, $payload) = explode('.', $signed_request, 2); 
    
         $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
    
         if (empty($data["user_id"])) {
                echo("<script> top.location.href='" . $auth_url . "'</script>");
         } else {
                echo ("Welcome User: " . $data["user_id"]);
         } 
     ?>
    

    If you need to access the user email just add the scope parameter (with the email permission) to your authentication url.

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

Sidebar

Related Questions

I have seen examples of printing from a windows application but I have not
I have seen lots of chat examples in Erlang but what about lists, like
I have seen many examples, with many 'no, you missed something' comments. What is
I've seen a number of examples that have a thread procedure that looks like
I have seen many Q's on this subject but none are exactly what I
I have seen simple example Ajax source codes in many online tutorials. What I
I have seen lots of questions recently about WPF... What is it? What does
I have seen Solutions created in Visual Studio 2008 cannot be opened in Visual
I have seen the references to VistaDB over the years and with tools like
I have seen this problem arise in many different circumstances and would like to

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.