By David on Thursday, 05 March 2015
Posted in Technical Issues
Replies 7
Likes 0
Views 469
Votes 0
Last week you helped me change the default image for twitter cards meta data from the thumbnail (which is too small) to the original image.

I would like to do the same thing for og:image so that it works on Facebook as well. Can you tell me what file I need to edit to achieve this? Looked around but can't find it.

Thank you.
Hello David,

Try open this file -> JoomlaFolder\components\com_easyblog\classes\facebook\helper.php and see how it goes.


//LINE 157
$image = $blog->getImage()->getSource('frontpage');
//Replace with

$image = $blog->getImage()->getSource('original');
·
Thursday, 05 March 2015 02:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks so much Arlex. Greatly appreciated.
·
Thursday, 05 March 2015 03:25
·
0 Likes
·
0 Votes
·
0 Comments
·
One more question - what folder structure should I use in overrides?

Documentation says everything for php file overrides should go directly into template/html/com_easyblog folder however this file is called helper.php and there are a number of them.....not only in the/for facebook folder.

Where should I put it so that it doesn't need to be updated every time there is a new version of EB? Will putting it into template/html/com_easyblog/classes/facebook work?
·
Thursday, 05 March 2015 07:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually that change (even on the original file) didn't work.
·
Thursday, 05 March 2015 07:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

Can you provide us with joomla backend access and FTP access so we can check on the issue directly?
·
Thursday, 05 March 2015 11:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Erzul,

I think it 'might' have worked - at least one post seemed to even though view source of the page doesn't look right. Can you let me know the folder structure to use in overrides please so that I don't have to update the file every time EB is updated?

If you need to access, can you check all the details in my previous post about Twitter cards?

Thank you,
David
·
Friday, 06 March 2015 20:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

I am really sorry for the delay of this reply as it is a weekend for us here. Currently it's not possible to override class / library files
·
Saturday, 07 March 2015 18:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post