Inline images in larger size
-
Hi,
the current images within the feed are only around 90px in width – if you want to show a decent intro to the facebook page, this is not the way you wanna go.
So here a dirty hack, that might be useful in future or could be made “more safe”:
// Replace the Image-References
if($options[‘replace_img_urls’]) {
$desc = preg_replace(“/img\s+class=\”img\”\s+src\=\”http(?:s|)\:\/\/.*\/hphotos\-ak\-(.*)\/(.*)\_s\.jpg\”/i”,
‘img class=”img replaced” src=”https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-$1/s320x320/$2_n.jpg”‘,
$desc);
}The option:
array(
‘name’ => ‘replace_img_urls’,
‘label’ => __( ‘Try to replace img-URLs (beta)’, ‘fbf’ ),
‘type’ => ‘checkbox’
),The complete code based on 1.2.1: https://pastebin.com/KgB7tn5i
https://www.ads-software.com/extend/plugins/fbf-facebook-page-feed-widget/
- The topic ‘Inline images in larger size’ is closed to new replies.