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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:45:24+00:00 2026-05-28T03:45:24+00:00

Possible Duplicate: response.authResponse is null i have developed one facebook page with apps, what

  • 0

Possible Duplicate:
response.authResponse is null

i have developed one facebook page with apps,

what i want is whenever any user visit my page, the user is served by one popup message, the popup will disappear only when user click “like” button, if user has already liked the page, popup will not appear, to do this i have write following code

 FB.getLoginStatus(function(response) {
  if (response.status === 'connected') {
    var user_id = response.authResponse.userID;  
    var page_id = "app_id"; 
    var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id;
    var the_query = FB.Data.query(fql_query);
    the_query.wait(function(rows) {
                 if (rows.length == 1 && rows[0].uid == user_id) {
                    alert("liked the page");
                    popup.hide() // hide the popup as user has clicked like button 
                 }
                 else {
                    alert("not liked ");
                 }
            });
  }
  else if (response.status === 'not_authorized') {

  }
  else
  {
    alert("not logged in");
  }
});

the above code works fine with only one FB user, one which is admin of this page, for all other user it returns response.status === 'not_authorized' status, so i’m unable to retrieve the user login information, because in this case i’m getting null response.authResponse

do anyone have any idea, how to check login status for all users, not for admin only…??

thanks.

  • 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-28T03:45:25+00:00Added an answer on May 28, 2026 at 3:45 am

    If you are talking about a page tab app and all you want to know is the “like” status of the visiting user then all you have to do is parse the signed_request passed to your app. You can read more about using and parsing Signed Requests here.

    In the signed_request there is a user object – the information you need is in that object.

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

Sidebar

Related Questions

Possible Duplicate: Post data and retrieve the response using PHP Curl? I want to
Possible Duplicate: Why have “while(1);” in XmlHttpRequest response? If you take a peek at
Possible Duplicate: Using JSON in iOS How does one parse JSON response in iOS?
Possible Duplicate: get the value of an url response with curl I have an
Possible Duplicate: Why have “while(1);” in XmlHttpRequest response? What does while(1) in Gmail do
Possible Duplicate: AJAX- response data not saved to global scope? I basically have a
Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: Resetting a multi-stage form with jQuery Once the form submitted, response from
Possible Duplicate: How to horizontally center a div? One simple way to make an

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.