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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:52:49+00:00 2026-05-26T11:52:49+00:00

I’ve setup a Facebook application and properly installed the Facebook Javascript SDK. When visiting

  • 0

I’ve setup a Facebook application and properly installed the Facebook Javascript SDK.

When visiting the site, user profile information is automatically displayed if they’re logged into Facebook. (Exactly what I want).

I tried installing the PHP SDK earlier, however it requires the Connect and authorization, so once the page is loaded it will prompt me to Login – even though I’m logged into Facebook already. There are some other minor bugs I didn’t like about the PHP SDK as well, so I’ve decided to ditch it and go with only the JS.

I can access the Profile name, email, gender, etc. and have those saved as separate JS variables as well as within separate

tags. The site is a WordPress site, and the goal is to automatically add anyone logged into Facebook as WordPress users.

  1. Visitor arrives at site and are logged into Facebook.
  2. The JS SDK retrieves their profile information.
  3. The information is displayed on the screen.
  4. … Need to find a way to retrieve this information and place it inside

wp_create_user (‘$facebookusername’, $’facebookemail’, ‘defaultpassword’)

I’ve been stuck on this problem for awhile and have only come up with the following possibilities….
– Access the cookie from Facebook ???
– Does the JS SDK include a JSON object that could be converted to a PHP array?

Thanks everyone and this site is excellent!

  • 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-26T11:52:50+00:00Added an answer on May 26, 2026 at 11:52 am

    You can get all information using js sdk and graph api and it will send the data in the json format.

    Once you got the information just make ajax call to your php where it will get the input and do whatever you want.

    And php has the ‘json_decode‘ function which will convert the json data into an array..

    To call the graph api using js sdk , use FB.api method

    FB.api('/me', function(response) {
      alert(response.name); 
      // here send a ajax request to a php script with the 'response' as data
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I am using Paperclip to handle profile photo uploads in my app. They upload
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.