wyattjozwowski
Regular Member
- Jan 25, 2013
- 347
- 413
Hey Guys,
So I'm currently using this code for a big Facebook share button:
<center><a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo(urlencode(get_permalink( $id ))); ?>" target="_blank"><img src="Facebook Button Image URL"></a></center>
And it works and looks good.
There is only one problem. It's grabbing an image from the post to use as the image when shared on Facebook, but I want a share button that uses the 'Featured image" So I can control how it looks in the newsfeed
Any suggestions?
So I'm currently using this code for a big Facebook share button:
<center><a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo(urlencode(get_permalink( $id ))); ?>" target="_blank"><img src="Facebook Button Image URL"></a></center>
And it works and looks good.
There is only one problem. It's grabbing an image from the post to use as the image when shared on Facebook, but I want a share button that uses the 'Featured image" So I can control how it looks in the newsfeed
Any suggestions?