The piece of code below will allow you to send custom data to Facebook using the Facebook Share functionality.
It is a simple Javascript code that will connect to Facebook Share tool to send your custom content.
Code:
<a class=”facebook” target=”_blank” onclick=”return !window.open(this.href, ‘Facebook’, ‘width=640,height=300’)”
href=”http://www.facebook.com/sharer.php?caption=Detailed Info&
description=Heading Text&u=URL”>Image/Text</a>
Related link:
How to pass custom data into Facebook