Facebook Open Graph, required property 'og:title' of type 'string' was not provided

后端 未结 2 776
北恋
北恋 2021-01-05 13:12

I have a Joomla-page (v3.2.4) where I put in some dynamic Open Graph tags with PHP, like this:

The PHP, before the tag:

$getcid = JRequest::getVar(\         


        
2条回答
  •  Happy的楠姐
    2021-01-05 13:59

    I found a solution for the problem in joomla 3 modifying only 2 files form joomla core so you don't have to turn off the GZIP option. It's turn off automaticaly only when detect the facebook crawler.

    https://github.com/dgt41/joomla-cms/commit/6eef42e50e3f3e4c78c93285de7f9ecfe8bbfbf5 and a plugin to solve the problem but this one don't run ok to me.

    https://github.com/dgt41/facebookfix/commit/e1d5aa3a1a94f7751d3b69db78ba1aa02dfc37c6

提交回复
热议问题