Mobile app version of vmapp.org
Login or Join
Sue5673885

: Facebook share link: specify image and custom message shown in post In my web application, I am allowing users to share their affiliate link to Facebook. I am currently doing this using this

@Sue5673885

Posted in: #Facebook #SocialSharingButtons #WebApplications

In my web application, I am allowing users to share their affiliate link to Facebook. I am currently doing this using this URL:

<a target="_blank" onclick="return !window.open(this.href, 'Facebook', 'width=640,height=500')" href="http://www.facebook.com/sharer/sharer.php?u=[App_Link]">


This results in a pop-up like this:



I want to be able to enhance this in two ways:


Specify the image that is shown along with this custom post (the company logo)
Specify a custom sentence or two in the Say something about this... text box


Are one or both of these possible?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

Facebook uses OpenGraph to determine what the page is about if those details are blank it will harvest other elements of the page. So if you want custom descriptions and images used then ensure that whatever page is being linked has the following code in the <head></head>.

For example:

<meta property="og:locale" content="en_GB" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Page Title Here" />
<meta property="og:description" content="Page Description" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:site_name" content="Example" />
<meta property="og:image" content="http://www.example.com/image-here.jpg" />

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme