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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:01:35+00:00 2026-05-26T09:01:35+00:00

My web application features a FB login button which is wired to some client

  • 0

My web application features a FB login button which is wired to some client side javascript to modify an html “online” element. The PHP side features the standard constructor

function facebook()
{

    return new Facebook(
        array(
            'appId' =>  getSetting("fb:app_id"),
            'secret' => getSetting("fb:secret")
            ));;
}

Now my understanding is that this should and could take care of all access token caching etc. So why do subsequent ajax calls back to my server app (which then does FB authentication again) take so long? I do need to recreate the Facebook object at every page access dont I? And it should take care of efficiency via its own session management?

Or am I approaching it incorrectly? Should I do this once to determine things like user FB ID (which I then use for app specific authentication) and then inform the server of log in/out with ajax call backs so my server is aware of the FB status? Hopefully this makes some kind of sense!

  • 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-26T09:01:35+00:00Added an answer on May 26, 2026 at 9:01 am

    Need to cache on the php side and not reauthenticate on each call back.

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

Sidebar

Related Questions

I have a freelance web application project where the client requests new features every
I'm working on an intranet-only web application (J2EE) that requires some basic security features.
I am currently adding features to a PHP web application for a client. They
My web application has a login page that submits authentication credentials via an AJAX
Our web application renders fast in some IE browsers, slow in others... It seems
I need to implement a login feature for the web application that I am
My application has some features that are accessible to all users, and some other
I need to implement single sign-on in my java web application which can achieve
My application is Web App Chat Room , it supports following features: 1.Create/Join/Close room
I am developing a GWT web application. I have a login page with one

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.