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)

Start a project with your dedicated software house

Top

Contact us

* Required fields

Elo Mordo!Elo Mordo!