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

456
Views
¿Compartir contenido en Facebook no funciona usando FB.ui para dispositivos móviles?

He agregado el siguiente código que funciona muy bien en la Web, pero no en los dispositivos móviles, el evento de clic no parece activarse.

 var FacebookShare = function() { this.method = 'feed'; this.name = 'A Name'; this.hashtag = '#YourHashtag'; }; $('#facebook-share').click((event) => { let options = new FacebookShare(); options.quote = $(event.currentTarget.parentElement).find('h5').html() facebookshare(event, options) }); function facebookshare(event, options) { event.preventDefault() if(typeof(mobileApp) !== 'undefined'){ options.display = "touch"; //also tried iframe, popup FB.ui(options, function() { console.log('shared'); }) } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Pude encontrar una solución a este problema al sobrecargar la siguiente cadena de consulta con una cita, que es el texto que desea citar y una imagen (url). El único inconveniente fue que no pude agregar un hashtag a mi publicación, ¡pero en general funcionó!

 var u = encodeURI(options.picture); var q = encodeURI(options.quote); window.location.href = "https://www.facebook.com/sharer/sharer.php?u=" + u + `&quote=${q}&display=popup&ref=plugin&src=like&kid_directed_site=0&app_id=YOUR_APP_ID`
about 4 years ago · Juan Pablo Isaza Report
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!