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

109
Views
How to integrate facebook share in mobile browser and call a function if share is success?

I want to share my website onto facebook and perform a function if the facebook share is success.

I have used Facebook Javascript SDK with display : 'popup'. The share functionality is working fine but opens my page in a new tab which is causing problem executing my function. The issue is only for mobile browser. It is working as expected in desktop

Here is my code:

FB.ui({
       display: 'popup',
       method:  'share',
       href: 'https://www.mywebsite.com/mypage',
       },
       function(response) {
                if (response != 'undefined' && response instanceof Array) {
                    loadAutoPopup_thanksfb();  
                } 
       });
});

I tried With display : 'iframe' method, but it did not solve my problem Please help in return to same page after facebook share for mobile browser

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!