when paste my web site link to Facebook time line the demo banner image appear in the preview although i removed them
Facebook Markup for sharing in facebook
Facebook has made its own markup language to understand content in your webpage.
This makes sharing in Facebook managed, beautiful and easy. For this you have to add following tags inside head tag of your webpage.
<meta property="og:url" content="Your current page's url" />
<meta property="og:type" content="content type" />
<meta property="og:title" content="Title of your page or title you want to show in facebook" />
<meta property="og:description" content="Short description what your webpage is about" />
<meta property="og:image" content="url of your image to be shown in facebook" />
You can now share beautiful content in facebook.
Hope it helps.
You have to use facebook open graph markup. Using this you can set title, description and image. To set an image, use this
<meta property="og:image" content="IMAGE_URL" />
Use those tags inside <head>. May be helpful, try this open graph markup
Related
I am integrating Facebook like and share feature in my application. Share and like are working fine, but images are not get posted on wall, I am using following og tags as follows in my
<meta property="og:title" content="HomeElite" />
<meta property="og:type" content="Real State" />
<meta property="og:url" content="http://50.63.185.193/homeElite/home.seam" />
<meta property="og:image" content="http://50.63.185.193/homeElite/rets-img/08258215_1.jpeg" />
<meta property="og:site_name" content="HOMEELITE" />
<meta property="og:description" content="HomeElite, Listing from MLS" />
Can any one please tell what is wrong with this? let me know if missed any thing to tell.
Thanks in advance.
Ali
Run your URL through the OpenGraph Debugger and see if any errors are returned. The main error I see is that the type is incorrect - there is no type of "Real State". See the Common Object types to find a more suitable option. Also, the og:image tag isn't detected on your page - try using a different format and see if it fixes the issue.
There are previous posts about this on the web, however none of the proposed solutions actually work for my scenario.
I have a children pages which all have their own unique og tags, and a parent root domain page with its own og tag, all to be crawled by facebook so people can see the descriptions/images when they are posted.
However, when I post my child url in the box, the results are blatantly proof that facebook crawled the parent page instead. Even the "see exactly what our scraper sees" page confirms that because it is only the parent template being shown.
Here is a link to fb's scraper : https://developers.facebook.com/tools/debug
Here are my og tags in the root domain html template:
Suppose the parent is www.me.com
Suppose one child is www.me.com/path/path
<head> ...
<meta name="keywords" content="...">
<meta name="description" content="..." />
<meta property="fb:app_id" content="..."/>
<meta property="og:site_name" content="..." />
<meta property="og:type" content="website" />
<meta property="og:title" content="..." />
<meta property="og:image" content="..." />
<meta property="og:description" content="..." />
<meta property="og:url" content="http://www.me.com" />
Here are the og tags in the child html template:
<head> ...
<meta name="keywords" content="...">
<meta name="description" content="..." />
<meta property="fb:app_id" content="..."/>
<meta property="og:site_name" content="..." />
<meta property="og:type" content="article" />
<meta property="og:title" content="..." />
<meta property="og:image" content="..." />
<meta property="og:description" content="..." />
<meta property="og:url" content="http://www.me.com/path/path" />
This is very frustrating because i've tried removing and adding many of the tags in different combinations, and every single time, the www.me.com parent gets crawled, while the child is left ignored!!
I tried to mimic the order of the tags of other sites with this feature working like cnn.com, but however mine still refuse to crawl the child..
Any help? Thank you.
Check that you're not
Rejecting the crawler's attempt to reach the child page
Redirecting the child page to the parent page when the crawler tries to load it
Including an og:url meta tag on the child page pointing to the homepage
Including a canonical meta tag in the child page pointing to the parent
Those are by far the most likely reasons for this, and though you've said in your question your og:url tags are correct, in my experience that's most likely to be the problrm
I fixed the issue after after finally noticing some odd hints. The site i'm working on is set so the first page view redirects to a splash page if and only if a specific cookie has not been set.
Hence, the Facebook crawler was hitting that page every time. It was not obvious though because the splash page inherits so much and looks just like one of the regular child pages.
What an unfortunate & time consuming bug.
This may be a stupid question, but I'll ask it nonetheless: Do the child urls have public access? The problem you are facing could be because the child url is being redirected to root url.
In the facebook linter output check for Fetched Url and Canonical Url section. This will give you some idea, whether redirections are happening.
It's Facebook.... there's something in their 'cacheing' or whatever you want to call it....
when a page is registered with a incorrect url... correcting that can be tricky....if not impossible...
Just try this.... change your back page url to:
www.me.com/path/path/file1.php
and run it thru the linter....with the correct metatags.....
I created a feed dialog on my website for a news page, I can share this news content without any issue to FB, but once in Facebook I want to share it there, I get the picture and description from a like button on my site.
This is the link for sharing from site to FB
<img src = "http://www.nwheelsandheels.be/img/share_button2.png">
part1
but when sharing it on FB again I get the picture and details from my like button on the home page.
part 2
For my like button the details are set in meta tags, can this be the issue (it has a different app id)
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta property="fb:app_id" content="190271261128958" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.nwheelsandheels.be" />
<meta property="og:title" content="N. Wheels and heels" />
<meta property="og:image" content="http://www.nwheelsandheels.be/img/logofb.png" />
Any help will be welcome, Thanks Johan
I created a web app with Rails and gave it the name on my local host LP4. Rails then made that the title of the site and, without thinking, I forgot to change it once I added a Facebook like button. Now anytime I or anyone else clicks "like" it shows that they like "LP4" on their facebook page. The only place it said LP4 on my site was in the title tags and I've changed them to the proper title of the site.
Furthermore, I put the Facebook meta tags in the header of my site indicating the new title etc, and the like button still puts "LP4" on the Facebook page.
I also never put the title LP4 on Facebook's developer settings http://developers.facebook.com so I don't know where it's getting it from.
Anyone know how to fix this?
<meta property="og:title" content="My New Title"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://mydomain.com/"/>
<meta property="og:image" content="http://blah.png"/>
<meta property="og:site_name" content="Site Name"/>
<meta property="fb:admins" content="2484848484848"/>
<meta property="og:description"
content="random site description."/
>
I'm running vBulletin 4.1.5 and I have configured it's Facebook settings. The problem I'm facing is when someone clicked LIKE button, the thumbnail posted in Facebook is not the first image in the thread, it will pick randomly from anywhere in the page i.e. avatar of any user replied in that thread!
Appreciate your help!
one solution is that you can define a global "facebook-thumbnail" for all shares.
Go to
AdminCP
Settings
Options
Facebook Options
Image URL
This image should be your site-logo or something else.
I'm still programming with vB3.8.x, however I'm working on a plugin for facebook liking. Might help you write you're own for vB4.x
First, you need opengraph and facebook namespaces defined:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head profile="http://gmpg.org/xfn/11">
Second, you need facebook's javascript:
<scr ipt type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1">
</scr ipt>
Last, you need open graph tags defined in the section of the html page:
<meta property="og:type" content="article" />
<meta property="og:title" content="this shows up as article's title when you like" />
<link rel="image_src" href="http://www.yoursite.com/yoursite1.jpg" />
<meta property="og:image" content="http://www.yoursite.com/yoursite1.jpg" />
<link rel="image_src" href="http://www.yoursite.com/yoursite2.jpg" />
<meta property="og:image" content="http://www.yoursite.com/yoursite2.jpg" />
<link rel="image_src" href="http://www.yoursite.com/yoursite3.jpg" />
<meta property="og:image" content="http://www.yoursite.com/yoursite3.jpg" />
<link rel="image_src" href="http://www.yoursite.com/yoursite4.jpg" />
<meta property="og:image" content="http://www.yoursite.com/yoursite4.jpg" />
The plugin I'm working on will loop through the top 5 attachments for a post and write out image_src tags and og:image tags. Not yet sure which hook I'll use.
pseudo code:
$attachs = $db->query_read_slave("
SELECT attachmentid, attachment.dateline
FROM " . TABLE_PREFIX . "post AS post
INNER JOIN " . TABLE_PREFIX . "attachment AS attachment ON (attachment.postid=post.postid AND attachment.visible=1)
WHERE threadid = $threadinfo[threadid]
AND post.visible = 1
ORDER BY filename DESC
LIMIT 5
");
if ($db->num_rows($attachs))
{
while ($attachment = $db->fetch_array($attachs))
{
$strImages = "<meta property=\"og:image\" content=\"/attachment.php?attachmentid=$attachment[attachmentid]&d=$attachment[dateline]\" />"
}
}
FYI - facebook seems to add thumbnails in a reverse manner. They'll look at the last og:image and use that as the first thumbnail; the next thumbnail shown would be the second to last and so on. Might want to play with the sort order of the SQL if that's important. Also, the image_src link is used for non-open graph social sites (google plus, twitter)