{"id":416,"date":"2017-05-27T07:24:26","date_gmt":"2017-05-27T07:24:26","guid":{"rendered":"http:\/\/randykaraan.com\/dev\/?p=416"},"modified":"2025-05-19T03:49:43","modified_gmt":"2025-05-19T03:49:43","slug":"send-custom-data-to-facebook-using-facebook-share","status":"publish","type":"post","link":"https:\/\/randykaraan.com\/dev\/send-custom-data-to-facebook-using-facebook-share\/","title":{"rendered":"Send custom data to Facebook using Facebook Share"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"560\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/iyUJTtipmfo\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>The piece of code below will allow you to send custom data to Facebook using the Facebook Share functionality.<br \/>\nIt is a simple Javascript code that will connect to Facebook Share tool to send your custom content.<\/p>\n<p>Code:<br \/>\n<span style=\"font-size:12px;\"><br \/>\n&lt;a class=&#8221;facebook&#8221; target=&#8221;_blank&#8221; onclick=&#8221;return !window.open(this.href, &#8216;Facebook&#8217;, &#8216;width=640,height=300&#8217;)&#8221;<br \/>href=&#8221;http:\/\/www.facebook.com\/sharer.php?caption=Detailed Info&amp;<br \/>description=Heading Text&amp;u=URL&#8221;&gt;\u200bImage\/Text&lt;\/a&gt;<br \/>\n<\/span><\/p>\n<p>Related link:<br \/>\n<span style=\"font-size:12px;\"><a href=\"https:\/\/stackoverflow.com\/questions\/22652041\/how-to-pass-parameter-like-title-summary-and-image-in-facebook-sharer-url\" target=\"_blank\">How to pass custom data into Facebook<\/a><\/span><\/p>\n<p><a href=\"https:\/\/randykaraan.com\/dev\/\" style=\"color:blue;font-size:16px;\">Back<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The piece of code below will allow you to send custom data to Facebook using the Facebook Share functionality. It&#8230;  <a class=\"excerpt-read-more\" href=\"https:\/\/randykaraan.com\/dev\/send-custom-data-to-facebook-using-facebook-share\/\" title=\"Read Send custom data to Facebook using Facebook Share\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":419,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/posts\/416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/comments?post=416"}],"version-history":[{"count":10,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":759,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/posts\/416\/revisions\/759"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/media\/419"}],"wp:attachment":[{"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/media?parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/categories?post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randykaraan.com\/dev\/wp-json\/wp\/v2\/tags?post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}