Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Facebook doesn't recognize "og:x" tags

In my PHP Codeigniter app focused on movie streaming, I want to add Facebook sharing feature.

I have these the most important og: tags (according to Facebook) enclosed in head tag:

  1. og:image
  2. og:title
  3. og:description

However, if I want to share this website, Facebook doesn’t recognize any tags. Output from Facebook debugger looks like this: Facebook debugger output

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What could be the problem? I don’t even know, what to try to fix this issue. You can take look at my website here.

>Solution :

The problem is, that your site is hidden behind login and we, nor Facebook can access it without logging in.

When I access the URL you provided, I am redirected to login page, because "Watching series and movies is only for registered users". Facebook is therefore redirected too. And even though your movie page has OG tags, your login and signup pages don’t.

Facebook can’t access the page with OG tags.

You can allow access to movie pages to anonymous users, but disallow them from playing the movie unless they login.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading