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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:04:11+00:00 2026-05-22T21:04:11+00:00

I use the PHP SDK for several backend functions that integrate Facebook, and I

  • 0

I use the PHP SDK for several backend functions that integrate Facebook, and I use the Javascript SDK to do things like embed widgets (eg: Like buttons etc).

Is there a technique to get them to communicate with each other? Eg, if my users login using my sites social login (which uses the PHP SDK) can I log that info with the JS stuff allowing them to interact with the Graph API.

Perhaps there is a way of including the users token in the JS embed code so that it is aware?

I can’t seem to find anything that discusses this.

  • 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-22T21:04:12+00:00Added an answer on May 22, 2026 at 9:04 pm

    If you use the JS SDK to login you can configure it to create the facebook cookie. You can then extract the token from that and use it in the PHP sdk, as covered here

    FB.init({appId: 'your app id', status: true, cookie: true,
                 xfbml: true});
    

    If you set cookie to true, you’ll get a cookie on the server side with a token you can pass into the PHP sdk.

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

Sidebar

Related Questions

I'd like to use the Facebook PHP SDK to post on a user's wall
I want to use PHP to replace javascript functions in HTML documents. For example:
So when I use Facebook's PHP SDK 3.0.1, using their example.php (you can find
I am using Facebook PHP SDK 3.0 I would like to know how could
I'm trying to use the Graph API and the PHP SDK for Facebook to
Currently I use Facebook php-sdk . Example code from the tutorial. $session = $facebook->getSession();
Can I use Facebook PHP SDK to deauthorize my app for a particular user,
I use php sdk for my app. I get the login url with $facebook->getLoginUrl()
I've got a problem with the facebook PHP-SDK in my oauth2 app. I use
I'm trying to use Facebook's PHP SDK to get the number of likes for

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.