The plugin uses the image size that is sent by Facebook. I haven’t really tried to mess with image sizes, so I don’t know how much flexibility Facebook will give you in changing the image size. If you are comfortable with PHP you can play with the function I use to display images.
- Open ‘/wp-content/plugins/jsl3-facebook-wall-feed/php/class-uki-facebook-wall-feed.php’
- At line 797 is a function called fb_fix.
- You can work with the image width and height there.
Also, I believe you will get a larger image if you remove the lines that set the height and width that Facebook sends.
- Open ‘/wp-content/plugins/jsl3-facebook-wall-feed/php/class-uki-facebook-wall-feed.php’
- Lines 805 and 806 are the following:
if ( isset( $w ) && isset( $h ) )
$result .= '" width="' . $w . '" height="' . $h;
- Remove lines 805 and 806.
- Save the file.
Hi Takanudo,
Thanks heaps for your response.
I have tried your solution and that does not changes the image size which is pulled. The width and height ($w and $h) are not actually set anywhere and therefore that $result line 806 is not actually rendering in the output.
I have tried setting $w and $h up manually but that just resizes the same small image which looks terrible.
Basically changing the width and height does nothing as it is still pulling the image file name which ends in _s.jpg which I assume is the small image. What I really need to do is to pull a different image file so it is the URL of the image file being pulled needs to be changed.
Any ideas?
Hi Takanudo,
Thanks heaps for your response.
I have tried your solution and that does not changes the image size which is pulled. The width and height ($w and $h) are not actually set anywhere and therefore that $result line 806 is not actually rendering in the output.
I have tried setting $w and $h up manually but that just resizes the same small image which looks terrible.
Basically changing the width and height does nothing as it is still pulling the image file name which ends in _s.jpg which I assume is the small image. What I really need to do is to pull a different image file so it is the URL of the image file being pulled needs to be changed.
Any ideas?
The width and height are set in the call to parse_str when w and h are specified in the query string. Unfortunately, the plugin can only display what Facebook sends in its feed. After doing some research, I discovered that changing the _s to a _n will give you a large image. Try changing return $result; to return str_replace('_s, '_n', $result); in the fb_fix function.
was looking for the same thing and… tweaking around line 803 to:
$stredit = str_replace(‘_s’, ‘_o’, $str);
$result = ‘<img src=”‘ . htmlentities( $stredit, ENT_QUOTES, ‘UTF-8’ ) . ‘” alt=”‘ . __(
does the job for me plenty fine
That did the trick perfectly! Thanks heaps guys π
Hi there,
got the same problem here, but i’m not really a php’er.
I got the php file, but now…
@gosugimoto: where do i place these lines exactly? or wich lines do i have to replace?
help appreciated.
oke right!
got it!
thanks a lot!!