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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:52:12+00:00 2026-05-30T13:52:12+00:00

We are struggling with a problem that is driving me insane. Using this code…

  • 0

We are struggling with a problem that is driving me insane.

Using this code…

$facebook = new Facebook($config);

$uid = $facebook->getUser();

if ($uid) {
  try {
    $user_profile = $facebook->api('/me');
  } catch (FacebookApiException $e) {
    error_log($e);
    $uid = null;
  }
}

if(!$uid) {
$params = array(
  'scope' => 'email',
  'redirect_uri' => 'https://www.mysite.com/'
);

$loginUrl = $facebook->getLoginUrl($params);

header("Location: $loginUrl");
}

$email = $facebook->api('/me?fields=email');
$email = $email['email'];

$verifyLike = $facebook->api('/me/likes/page_id');
if($verifyLike['data']) {
    echo "FAN"; 
} else {
    echo "NOT A FAN";
}

We are getting about 8% of users who are seeing “NOT A FAN” and they are in fact a Fan of our page.

I can’t for the life of me figure out the problem, and I am running out of ideas.

Anyone have any idea what is causing this issue, and more importantly what we can do to fix it?

Thank you.

UPDATE 2/25/12
Reported the bug to Facebook, and they changed the bug status to “Triaged” and the priority to “Low”, but they don’t yet have a solution and are still looking into it. No one else is experiencing this issue?

  • 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-30T13:52:13+00:00Added an answer on May 30, 2026 at 1:52 pm

    This is not a bug of facebook, if the user’s pages are set to less than everyone privacy, you must ask the user for the user_likes extended permission.

    So these 8% of your users have more privacy on their facebook profiles and their likes are not public. For all other users you don’t even need a valid access_token in the api request.

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

Sidebar

Related Questions

I am struggling with a very basic regex problem in my .htaccess file that
A coworker has been struggling with this problem. The desired result is an installable
I've been struggling with this problem.. There is a wrapper div and it contains
Been struggling with this simple selector problem a couple of hours now and must
The problem is simple, but I'm struggling a bit already. Server server = new
This is a problem I've been struggling to solve for a while. I need
I can't seem to find the problem with this php function i wrote that
I am currently struggling with a problem, that I can't find the reason. Currently
I have been struggling with a problem that only happens when the database has
I've been struggling with a problem that I have for days now and 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.