Blog

Why Facebook is not showing the share dialog inside tab

Today I struggled for a few hours with non-working FB.ui share dialog on facebook tab (so no authorization was required whatsoever). The strange thing was that the script worked great in dev environment and refused to work in production.

Facebook doesn't show the share dialog inside tab. How to solve it?

Code was quite standard:

The first problem was that the app did not show async dialog at all – without any errors. After changing dialog type to display: 'popup' I finally found a problem (with the solution provided here: http://stackoverflow.com/questions/8153187/facebook-api-error-100-error-message-redirect-uri-url-is-not-properly-formatted) – in the production environment, my app was using underscores in the domain name… After changing the domain name into one that does not contain underscores, the app started to work like a charm. Even with async dialog type. I hope this will help someone.

(credits: photo from unsplash.com)

Check our latest product - it's based on our experience of managing over 50-people strong company. The tool we're missing as a small company and not an enterprise.

humadroid.io is an employee and performance management software. It's an unique tool allowing everyone to be in the loop - by having up to date info about co-workers, time-off, benefits, assets, helping with one-on-ones, being a go-to place for company-wide announcements.

Check out humadroid.io
Top

Contact us

* Required fields

The controller of your personal data provided via this contact form is Prograils sp. z o.o., with a registered seat at Sczanieckiej 9A/10, 60-215 Poznań. Your personal data will be processed in order to respond to your inquiries and for our marketing purposes (e.g. when you ask us for our post-development, maintenance or ad hoc engagements for your app). You have the rights to: access your personal data, rectify or erase your personal data, restrict the processing of your personal data, data portability and to object to the processing of your personal data. Learn more.

Notice

We do not track you online. We use only session cookies and anonymous identifiers for the purposes specified in the cookie policy. No third-party trackers.

I understand
Elo Mordo!Elo Mordo!