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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:05:17+00:00 2026-05-27T04:05:17+00:00

I am attempting to get users facebook name etc via an app I am

  • 0

I am attempting to get users facebook name etc via an app I am building. I am aware users will have to authorize this. I am looking at the facebook documentation but am having trouble getting to grips with exactly what I need to do.

I am loading my app as a canvas page. I have got the signed request such etc as in

if page is already liked do this:

if not show like our page option.

The page that is displayed after you have liked it has a question on which if you answer it will enter you into a competition. rather than having users fill out name and email I would like to enable oauth to get these details.

any ideas? thanks in advance

exisitng code:

if ($like_status ==”1″)
{

if ( !empty ( $_REQUEST['enter_competition'] ) )
{
    $name = "";//needs to be amended to what we get from Facebook
    $email = "";//needs to be amended to what we get from Facebook
    if ($_REQUEST['answer']==$correctanswer)
    {
        $result = "Correct";
    }
    else
    {
        $result= "Incorrect";
    }

    $insert = mysql_query ("INSERT INTO competition ( name, email, answer ) VALUES ('".$name."', '".$email."', '".$result."')",$db);

    $displayforuser="true";
}

?>
  • 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-27T04:05:18+00:00Added an answer on May 27, 2026 at 4:05 am

    didnt use ouath in the end. just collected manually. and I did read through the documentation as I stated in the original Q

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

Sidebar

Related Questions

I'm building a Facebook app and I have noticed that when attempting to get
I am attempting to get rails routes paths via nested resources. I have looked
I’m attempting to get the users location for a mobile web app, if their
I'm building an admin control panel (attempting to ;) ). I have been looking
Attempting to get Spring internationalization working. I have used classpath:messages basename, created .properties files
Im attempting to get a block of text from a file I have already
I'm attempting to get rid of an app's HTML files and store their contents
I have been attempting to get log4net logging in my asp.net web application with
I'm attempting to do a Facebook FQL Multiquery (via JS SDK FB.api call) to
In my Rails app I am attempting to create a form that allows users

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.