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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:35:56+00:00 2026-06-05T12:35:56+00:00

Currently, my application only allow users to log-in using their google account. Im now

  • 0

Currently, my application only allow users to log-in using their google account. Im now in the process of allowing Facebook account to be used for the site.

Since only google account was the authentication method, i used the UserService for checking if a user is logged in:

    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();

Since I will add Facebook account, what will be the best method to check if a user is login? On either google account or facebook account?

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-06-05T12:35:57+00:00Added an answer on June 5, 2026 at 12:35 pm

    Facebook logins work differently to Google’s and you’ll need to implement Facebook’s OAuth flow: https://developers.facebook.com/docs/authentication/server-side/

    When the user returns to your site they will have an access_token, you can use this to query the Facebook Graph API.

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

Sidebar

Related Questions

I have a wordpress application thats currently the only application on the domain. Now
I am currently designing a web application that will allow users to schedule tasks
On my site users should be able to authenticate using their twitter account. Another
I want to build a ring topology using android emulators. Currently my application has
I'm writing a web application using the google maps api v3, which displays places
We want to allow DB access (Oracle) to our users only through our own
I'm currently about to start designing a new application. The application will allow a
I'm currently using a homegrown method to run a process as a different user
I have application hosted Apache UNIX, and I am allowing users to access the
I'm working on a internal web application (only employees can log in) and need

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.