OG Dynamic Tags MySQL and PHP

0

I need help with the following problem since I have not been able to find the solution (I think it could be very simple) I have a web page in which I want to use OG Tags in a dynamic way (fill them depending on the information in the database). Everything works fine if I add all the connection information in the page where I have the peeeeero tags if I use the require or include functions (in order to separate the connection data, I receive the following error message in the shared content debugger). Facebook "Your page has meta tags in the body instead of the head. This could be because of your HTML was malformed and they fell lower in the parse tree."

Do you know if I can fill them dynamically without adding all the connection information on the same page?

Thank you!

    
asked by Armin_SC 03.05.2017 в 19:22
source

1 answer

0

Your question does not have to do with open graph tags, but with a php error. I think you're having a problem when you include the file. In facebook linter you can see the whole body of the page parsed, here you can see when you want to include connection.php, sure you get a warning or an error that is "breaking" the header. Remember not to do anything or anything in the file "conexion.php" either. If you include the link to the page on the server it will be easier to help you.

    
answered by 03.05.2017 в 21:15