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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:18:57+00:00 2026-05-23T14:18:57+00:00

Using JavaScript SDK FB.login method I get user details in client JS code. I’d

  • 0

Using JavaScript SDK FB.login method I get user details in client JS code. I’d like to transfer this data to my server-side script. The first idea is a plain AJAX call. The problem is that I can’t verify from the server side that this data comes from authority (my JS that performs Facebook login) and not from someone that abuses my AJAX endpoint.

P.S. I’ve found this solution: FB.login with PHP API
(only access token is transfered and PHP SDK is used on the server)

  • 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-23T14:18:58+00:00Added an answer on May 23, 2026 at 2:18 pm

    The best way to do this is for your server to just get the data from FB directly. You may have to involve the user to gain access, but if the server is getting the data from FB directly, then there’s no endpoint for people to abuse.

    If you’re going to get the data from FB in the client and then pass it to the server, then you’ll have to use authenticated connections into the server and you’ll have to use some form of authentication you trust where if anyone is found abusing the endpoint, you can immediately cut off their access and expunge their data. That’s why lots of services use developer keys as a means of authenticating people into the endpoints. I don’t personally know of any way that you could actually guarantee that the client is giving you good data.

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

Sidebar

Related Questions

I use the javascript to get some data from facebook using javascript sdk: window.fbAsyncInit
I'm in the process of using the facebook javascript sdk to provide user login
How would I expose an Objective-C method within JavaScript when using the iPhone SDK
I'm playing with facebook's javascript sdk and can't get the user email address to
I am using the Facebook Javascript SDK to create a login button using the
I'm using Facebook's Javascript SDK to allow login/logout, and my problem is that when
How can I post to a user's wall using Javascript SDK?
Using Javascript SDK for Facebook, you can do a FB.login(function(response) { if (response.authResponse) {
I'm using Facebook's JavaScript SDK and trying to determine if the user is logged
Here I am using Facebook Login button plugin and javascript sdk I am able

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.