-
-
Hello
The sharing on facebook stopped associating the featured image of the post in the sharing and started to associate in the sharing the first image that it finds in the page.
I think this problem came up when wordpress was updated to a more current version than the one it was in use.
It’s possible to resolve this problem in the loop-index.php file in this line:
$ Facebook_shares = '<a href="https://www.facebook.com/sharer.php?u='.esc_url(get_permalink()).'" target="_blank">';
Also passing the reference to the image?
Or how can I resolve this issue?
Best regards
-
I’m not asking for a customization. I’m only asking for a solution to a problem.
The functionality to share post on facebook is something that come with the theme. In the past worked fine but, for some reason, now the featured image of the post aren´t the image that goes on the facebook share.
I already included two functions on the function.php to insert the metatags necessary for the facebook on the header of the page.
That was the problem.
For now, i think it’s ok.
Best Regards
-
Hello,
The facebook share is controlled by the facebook API. This has changed from sometime and caused the changes in the share features.
I am glad you found your solution.Best regards!
-
You must be logged in to reply to this topic.