vBulletin Facebook LIKEs thumbnail - facebook-like

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)

Related

Opencart remove demo catalog

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

Facebook's Lint is crawling root URL rather than the given URL

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.....

different pic and description visible when sharing a post shared with feed dialog from website

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

get like count of urls shared on facebook wall (NOT link_stat)

I've Facebook like button correctly in my site.
My meta look like these:
<meta property="og:image" content="image url"/>
<meta property="og:site_name" content="site name"/>
<meta property="og:title" content="page title"/>
<meta property="og:url" content="page url" />
<meta property="og:description" content="page description" />
<meta property="og:type" content="article"/>
<meta property="fb:admins" content="my_user_id"/>
<meta property="fb:app_id" content="my_app_id"/>
Meta are properly inserted & verified (with Facebook linter)
I'm able to get like count value throught fql query
SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="mysiteurl"
It's all ok but these values don't include likes made from users on Facebook wall.
For example if I share a link (www.example.com/myurl) on my wall and my friends or someone else likes the url from their own wall, the like count on www.example.com/myurl doesn't reflect these new likes. It's not a cache delay issue.
It seems to me that, url shared on Facebook lives on its own.
I'd want to get the like count mentioned above.
Thanks for your help.
Liking a stream item (aka post/wall/feed/link) which happens to contain your link is not the same as liking a url.

Problems with OG "like" button for articles: not showing images/article contents in feeds

I have 2 like buttons on my site, one for the website itself is working fine, but the other one for the 'specific articles' isn't showing the image and article contents in the news feeds. It'll just show something like this:
Felix Tan likes a link.
http://www.neptuni.com/lab/blog/new-marketplace-new-opportunities.php
I believe this is a problem with my meta tags, here's my tags for the article page
<meta property="og:image" content="http://www.neptuni.com/images/fb_image.png" />
<meta property="og:title" content="Neptuni.com" />
<meta property="og:site_name" content="Neptuni.com" />
<meta property="fb:admins" content="514526208" />
<meta property="og:url" content="http://www.neptuni.com/lab/blog/new-marketplace-new-opportunities.php" />
<meta property="og:description" content="test" />
<meta property="og:type" content="article" />
Can anyone help me on this? Thanks!
You can see the specific page at http://www.neptuni.com/lab/blog/new-marketplace-new-opportunities.php
It worked just fine for me. Most likely it's a caching problem. When facing such issues always run your links on the Facebook Debugger.