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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:19:35+00:00 2026-06-16T05:19:35+00:00

I want to use the Facebook graph API . What I want to do

  • 0

I want to use the Facebook graph API. What I want to do is that if I have email address of a person I want to see if he have a Facebook account with that ID. so I Googled a little and found that i can use this.

graph.facebook.com\search?q=abc@xyz.com&type=user

where all I have to provide is email ID (In this case it is abc@xyz.com) so it I will get some output from Facebook databse for the user ID and I might view his profile. The problem is that I cant figure out how to use this URL to start working. I have created an App on https://developers.facebook.com/apps

and got my App ID/API Key and App Secret but I think I need to register a URL their so that I can access the Facebook Database. But I cant find where and How. I didnt found any good documantation or so to guide me around. Can anyone be gracious enpough to let me know what to do ?
PS
I use This code to check for everything is alright :

<?php
require_once("src/facebook.php");

$config = array();
$config[‘appId’] = 'api key';
$config[‘secret’] = 'secret';
$config[‘fileUpload’] = false; // optional

$facebook = new Facebook($config); 
$user = $facebook->getUser();
echo "user = ".$user;
?> 

and it always returns user = 0

  • 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-16T05:19:37+00:00Added an answer on June 16, 2026 at 5:19 am

    getUser will always return 0 if there is no authorization, that is the point of the function; return an authorized user for the application.

    If you are looking for Graph API calls not requiring a valid user then you don’t need to use that function. The PHP SDK will use the application token to make calls when no user access token is present.

    https://github.com/facebook/facebook-php-sdk/blob/master/src/base_facebook.php#L407

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

Sidebar

Related Questions

I want to use facebook graph api to authenticate users on my webapp which
I want to use the FaceBook Graph API to develop some apps (I won't
I want to use an observer to send stuff to Facebook Open Graph. Roughly,
Now facebook require to have these options when you want to use bulit-in actions
I want to post an event to a facebook group using the graph API
I want to build a website that you can login with your facebook account.
I'm new to web development. Reading the Facebook Graph API documentation, I found it
I want to fetch birthday of Facebook friends.I am using graph api, i know
Possible Duplicate: 'Like' a page using facebook graph api I want to let users
i want to use facebook's fb:dialog tag to display a simple pop-up form for

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.