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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:03:29+00:00 2026-05-24T00:03:29+00:00

I’m building a website that will authenticate users via Facebook connect and I’m torn

  • 0

I’m building a website that will authenticate users via Facebook connect and I’m torn between using the PHP SDK/Server-side flow or the JS SDK/Client-side flow.

Here are some considerations:

  1. I want to record all users that authorize my app in a database (userid’s, email addresses) on my server
  2. I want to give users the ability to publish to their walls using the attractive dialogues generated by FB.ui() in the JS SDK
  3. I want to be able to publish a story on a user’s wall via my server in response to an external event
  4. I want to enable/disable certain functionality on my website based on whether or not the user is currently logged into facebook

There are prob a few more I can think of. But based on these requirements I’m guessing I’m going to need to use both SDKs. But which SDK should I rely on for the initial application authorization/new user recording in my database?

My idea of how this might work in both scenarios:

JS SDK:

User selects login button, callback method fires AJAX request to server and passes along the authenticated user’s FBID via post. Code on server determines if this is a new user, and records in database if no existing record is found + records access_token to allow server-side API requests.

PHP SDK:

User is redirected to Facebook’s authorize page and script that is executed after Facebook redirects a user back to my app records a new record if no existing record for that user is found. But will the JS SDK be able to execute calls to the API if I’ve authenticated using the server-side flow?

  • 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-24T00:03:32+00:00Added an answer on May 24, 2026 at 12:03 am

    You’ve already got a strong analysis of the differences between the languages. Beyond that its really a preference and its true there is nothing holding you from using both.

    To answer your question though it would, in my opinion, best to use javascript:

    1. Because I like javascript more.
    2. Because users can interact with your site while its logging in to Facebook and communicating with your server.

    If you only want to use one, then your number 3 pretty much requires the PHP SDK. Beyond that, it really is personal preference.

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

Sidebar

Related Questions

No related questions found

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.