I have a website that basically extract the opengraph metadatas from links in a database.. and now I have to create a verify code to check if the link that the user is sending through a submit box to my website database is opengraph friendly. I need to do a kind of a test in the link and see if it has at least the meta property=”og:image” on its source code, and then avoid the submission of links that will not work properly. I’m also using a recaptcha to avoid spammers and I was thinking that I could use the same verify code of the recaptcha to do this opengraph test. Anyone have any idea of how can I do this?
Share
Well, I solve that out some months ago, if someone end up here thats how I did it:
Instead of trying to search for the metadata, I just used the
$arrayagain with all the opengraph elements and checked if I really got something therekind regards