Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
How to manage cookies set by Facebook

am trying to manage the cookies set by facebook (_fbp, fr, xs, sb). The SDK is needed to enable FB login.

The project React based but most of the stuff is handled with JS.

At the same time it be great if the user could opt-out from having those cookies set.

the code used is outdated v3.3

   window.FB.init({
     appId: Settings.settings.facebookAppID,
     cookie: true,
     xfbml: true,
     version: 'v3.3'
   });
   window.FB.AppEvents.logPageView();
 };

 (function(d, s, id) {
   var js,
     fjs = d.getElementsByTagName(s)[0];
   if (d.getElementById(id)) {
     return;
   }
   js = d.createElement(s);
   js.id = id;
   js.src = '//connect.facebook.net/en_US/sdk.js';
   fjs.parentNode.insertBefore(js, fjs);
 })(document, 'script', 'facebook-jssdk');

What would be the best way to approach this ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!