Quantcast
Channel: Phoca Forum
Viewing all articles
Browse latest Browse all 1974

Phoca Plugins • Re: Phoca Opengraph plugin - Issues with images when sharing on Facebook

$
0
0
Ok, I implemented a workaround that gets this fixed for me, just in case someone else finds it useful: just add the following code at line 87 in plugins/content/phocaopengraph/phocaopengraph.php

Code:

      if (strpos($linkImg, '#') !== false){            $hashpos = strpos($linkImg, '#');            $linkImg = substr($linkImg, 0, $hashpos);        }
This way, if the image URL contains a hash character, it and everything after it will be removed from the url that will be used in the og:image parameter.

Would be nice if this could be added as an option in the plugin settings :).

Cheers!

Statistics: Posted by isidrobaq — 09 Aug 2024, 12:34



Viewing all articles
Browse latest Browse all 1974

Trending Articles