Sharing posts on social media, with photos

Agnieszka
Posts: 5
Joined: Thu Mar 17, 2016 3:59 am
Contact:

Sharing posts on social media, with photos

Postby Agnieszka » Wed May 04, 2016 2:03 pm Supported Until: Tue Sep 06 12:19:31 +1000 2016 | Expired

Hello,

I have a problem with sharing my posts (eg. on facebook). When I click on the share buttons in the bottom right corner of the post, it transfers me to fb (thats OK), and when I click share, facebook can see the title of the post but the picture added to the post isn't attached. Instead you can see my logo (Bodylicious). It happens every single time. I would like to share my posts with the pictures that are dedicated to them.

Can you help?

Agnieszka

User avatar
pirateS
Site Admin
Posts: 6260
Joined: Wed Nov 05, 2014 11:49 am
Contact:

Re: Sharing posts on social media, with photos

Postby pirateS » Thu May 05, 2016 9:51 pm

Hi
We wrote a tutorial of this issue here http://blog.wiloke.com/facebook-grabs-i ... ail-image/
Thanks

Agnieszka
Posts: 5
Joined: Thu Mar 17, 2016 3:59 am
Contact:

Re: Sharing posts on social media, with photos

Postby Agnieszka » Mon May 09, 2016 1:38 pm Supported Until: Tue Sep 06 12:19:31 +1000 2016 | Expired

Thanks, for you're reply!
I think that's what I need - I'm not good at all in coding in html at all. Where exactly should I insert this code?:

public function pi_insert_image_src_rel_in_head()
{
global $post;
if ( !is_singular() ) //if it is not a post or a page
return;
if(has_post_thumbnail( $post->ID ))
{
$thumbnail_src = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ), 'full' );
echo $thumbnail_src;
}
}

At the very begining? The functions.php code is really long, I don't want to mess it up.
Big thanks!

A.

User avatar
pirateS
Site Admin
Posts: 6260
Joined: Wed Nov 05, 2014 11:49 am
Contact:

Re: Sharing posts on social media, with photos

Postby pirateS » Tue May 10, 2016 10:37 pm

Hi
Please click on Appearance->Edit, then put that code to the bottom of textarea.
Thanks

Agnieszka
Posts: 5
Joined: Thu Mar 17, 2016 3:59 am
Contact:

Re: Sharing posts on social media, with photos

Postby Agnieszka » Tue May 17, 2016 1:13 pm Supported Until: Tue Sep 06 12:19:31 +1000 2016 | Expired

Hello again,

I got this:
Parse error: syntax error, unexpected T_PUBLIC in /wp-content/themes/bamboo/functions.php on line 751

and my page or WP edditor does not work, I cannot open them:
see www.bodylicious.pl

I'm totally panicking right now!
Hope there is something you can do - please help!

Agnieszka

hungitms
Posts: 176
Joined: Wed Mar 02, 2016 8:36 am
Contact:

Re: Sharing posts on social media, with photos

Postby hungitms » Wed May 18, 2016 3:33 pm

Hi Agnieszka , please send for me FTP account of your site to address tranminhchinh.ksb@gmail.com. I will check it!
Thanks!


Return to “Bamboo”

Who is online

Users browsing this forum: No registered users and 1 guest