By Paul Murray on Monday, 06 October 2014
Posted in Technical Issues
Likes 0
Views 890
Votes 0
Hi SI Team

I want to share an article on Facebook.
This is the article in question.
http://finalbug.net/blog/entry/397-v-o-d-training-for-fcpx-in-german
When I do so I am offered a choice of 3 Thumbnails!

None of which have anything to do with the main image for the article that I am trying to publish. Am I missing something?!?

thanks

Paul
Hello Paul,

What I did was in this file: ../components/com_easyblog/classes/facebook.php on line 63, i just put the space between '/<space>src'. This is because, in your img tag currently has 2 'src='. The only different is 'this.src=' and ' src='. So, when I put space, it will get only ' src='.
·
Thursday, 09 October 2014 19:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Are you using the blog image to associate the image with the blog post? I would suggest that you do that instead because this is the only way for us to correctly know which image to use in the opengraph tags.
·
Monday, 06 October 2014 21:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

Are you suggesting that I put the image as shown in the screen shot below?
The problem with this is that it would kill my roll over pop up work flow...
i.e. roll over the image and click to play video on Easy Blog!!!
Or are you suggesting something else?
Alternatively I could maybe add an image manually for FB and Co.

thanks

Paul
·
Monday, 06 October 2014 22:23
·
0 Likes
·
0 Votes
·
0 Comments
·
ps I know this is not a Techjoomla forum but this is probably going to have implications for their plugin Broadcast that pushes automatically to FB & Co…

http://techjoomla.com/products/broadcast
·
Monday, 06 October 2014 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

Hm, is it possible for you to update the FTP access so that I can check on it? For some reasons the ' is being added to the opengraph tags.
·
Monday, 06 October 2014 23:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Have entered Site Details below

Mark I have not got a clue what you are talking about but I know that you know what you are doing
·
Monday, 06 October 2014 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

I've checked your site and seems like the additional code added to the img tag has messed up regex result. Here means, it generates og:image wrongly. I've modified the regex pattern to get your original image ( http://screencast.com/t/qZAFzK7gEd ) in this file: ../components/com_easyblog/classes/facebook.php. Please have a look.
·
Tuesday, 07 October 2014 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick

Great news. I confirm that this is working now.

Is this problem related to the below modification or something entirely different?:

I have made some changes in this file

JOOMLA/components/com_easyblog/helpers/helper.php

at line 1358 where i replaced the codes

$pattern		= '#<img[^>]*>#i';



with this

$pattern		= '#<a.+?><img.+?></a>#i';


Am I correct in thinking that for this to work in the future that, I will have to make a manual back up of helper.php and update this per hand (FTP) every time I do a template update?

thanks

Paul
·
Tuesday, 07 October 2014 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

Yes, you'll need to make a backup of the file because the regex syntax would be a little different in your case.
·
Tuesday, 07 October 2014 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark

By the by could this fix help with the config of Broadcast? From lets say 30 post with Broadcast only 3 had Poster frames!?! Admittedly I was Broadcasting “Shares” from Easy Social. Just an off the wall thought!
·
Wednesday, 08 October 2014 00:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

I'm sorry can you elaborate more on this?
·
Wednesday, 08 October 2014 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik

Thanks for the response. As I understand this problem here: it there was some kind of Bug that was preventing images being pulled from Blog posts for publication on Social Media. I am wondering if this same bug could have prevented the plugin “Broadcast” from techjoomla pulling images from Shared links on Social Media.

I am not looking for a fix here. Just trying to eliminate possible sources of error!

Also wondering if this fix will be there after updates template or whatever! Do I need to make an back up of another file!?!

eg: …/components/com_easyblog/classes/facebook.php.

thanks

Paul
·
Wednesday, 08 October 2014 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

I believe it is not the same issue. This is because the og:image only generated in Easyblog page. This fix will only work in EB. And you have to backup only this file ( ../components/com_easyblog/classes/facebook.php) before upgrading.
·
Wednesday, 08 October 2014 17:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick

OK great thanks. That is good to know.

Could you please kindly let me know exactly what line of code was changed from what to what?

This way I hopefully will not have to bother you and your team again in a couple of months when I break it again ;-)

thanks

Paul
·
Thursday, 09 October 2014 17:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick

Thanks for the fix/hack and telling me how you did it,

best

Paul
·
Thursday, 09 October 2014 20:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Paul, glad that your issues are resolved now
·
Friday, 10 October 2014 02:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post