Facebook share button does not grab og tags (Response code 404) - facebook

When I click on the share button on this page, Facebook doesn't recognize the parameters I'm passing through og tags.
The problem seems to be Facebook is getting a "404" Response code, according to Open Graph Object Debuger
I checked the Response code from the page and get different results with different tools:
http://tools.seobook.com/server-header-checker/ -> 404 Not Found
http://web-sniffer.net/ -> 404 Not Found
http://httpstatus.io/ -> 200 OK
https://monitorbacklinks.com/seo-tools/http-header-status-check -> 200 OK
http://www.axandra.com/free-online-seo-tool/status-code.php -> 200 OK
If I telnet the server I get a "301 Moved Permanently" and the contents are returned correctly:
$ telnet mlgestion.es 80
Trying 46.105.153.112...
Connected to mlgestion.es.
Escape character is '^]'.
GET /es/Venta-Viviendas-Apartamento-Sur-Retamar-Almeria/59215/ HTTP/1.1
HOST: mlgestion.es
HTTP/1.1 301 Moved Permanently
Date: Thu, 05 Nov 2015 13:10:50 GMT
Server: Apache/2.2.23 (CentOS)
X-Powered-By: PHP/5.1.6
Location: //www.mlgestion.es/es/Venta-Viviendas-Apartamento-Sur-Retamar-Almeria/59215/
Vary: Accept-Encoding,User-Agent
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
950a
<!DOCTYPE HTML>
<html class="js" xml:lang="es" xmlns="http://www.w3.org/1999/xhtml" lang="es"><head>
<title>Apartamento en venta en Sur, Retamar, Almeria [Ref.59215]. 2 dormitorios</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="¿Quieres vivir en primera linea de playa a bajo coste? te presentamos este bonito apartamento ubicado en Retamar a 70 metros de la playa, en pleno paseo marítimo, residencial...">
<meta property="og:title" content="Venta Apartamento - Sur, Retamar, Almería [59215]" />
<meta property="og:image" content="http://mlgestion.es/_dat/100/44/fotos//59215/1-foto-800x535.jpg" />
<meta property="og:image:width" content="450"/>
<meta property="og:image:height" content="298"/>
<meta property="og:url" content="http://mlgestion.es/es/Venta-Viviendas-Apartamento-Sur-Retamar-Almeria/59215/" />
<meta property="og:description" content="Oportunidad en 1ª linea de playa ¿Quieres vivir en primera linea de playa a bajo coste? te pre
...
Other pages of the same site are fetched correctly (without photo) by Facebook.

Related

Share Open Graph image on WhatsApp Desktop issue

I am trying to figure out how to show an image preview on WhatsApp Desktop.
Recently WhatsApp Desktop was updated. Since then my code has no longer been functional on this.
It remains working on WhatsApp mobile.
My index.html script:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="og, image, test" />
<meta name="description" content="Og:image test" />
<meta name="author" content="Maurício Ramos da Silva">
<meta property='og:image' content='https://teste.mauricioramos.com.br/003.jpg'/>
<meta property='og:url' content='https://teste.mauricioramos.com.br'/>
<meta property='og:type' content='website'/>
<meta property='og:title' content='Duplex/Casa Geminada Venda'/>
<meta property='og:description' content='Residência geminada com 2 dormitórios (suíte americana), banheiro social, living amplo integrado a cozinha, área de serviço e estacionamento para 2 carros. Forro em laje de concreto, aberturas em alumínio, amplo pátio fechado e individual.'/>
</head>
<body>
<h1>WhatsApp Desktop og: Test</h1>
<button onclick="share()">Share</button>
<img src="003.jpg" width="300"/>
<script>
const content = 'Residência geminada com 2 dormitórios (suíte americana), banheiro social, living amplo integrado a cozinha, área de serviço e estacionamento para 2 carros. Forro em laje de concreto, aberturas em alumínio, amplo pátio fechado e individual. https://teste.mauricioramos.com.br';
const result = 'https://wa.me/?text=' + content;
function share() {
console.log('open');
window.open(result, '_blank')
}
</script>
</body>
It show like:
Image showing share result on WhatsApp
I have tried to change SSL key, from Cpanel Inc. to ZeroSSL with no success.
Furthermore, you can test online here:
Click to show webpage
What more I can do?

FB Local Payment error: "Can't parse open graph object. Property price doesn't exist for item"

I am try set up payment for the FB application for with the static-priced products;
On the Javascript side, I do:
function callOrderUp()
{
alert("GO!1");
FB.ui({
method : 'pay',
action: 'purchaseitem',
display: 'popup',
product : "https://www.manyfbgames.com/ninetofive/products/product1.html",
quantity : 1
},
function(response)
{
alert(JSON.stringify(response, null, 4));
}
);
}
The contents of product files are:
<!DOCTYPE html>
<html>
<head prefix=
"og: http://ogp.me/ns#
fb: http://ogp.me/ns/fb#
product: http://ogp.me/ns/product#">
<meta property="og:type" content="og:product" />
<meta property="og:title" content="Test 1" />
<meta property="og:plural_title" content="Test 2" />
<meta property="og:image" content="http://manyfbgames.com/ninetofive/products/product1.png" />
<meta property="og:description" content="Friend Smash Coins to purchase upgrades and items!" />
<meta property="og:url" content="https://www.manyfbgames.com/ninetofive/products/product1.html" />
<meta property="product:price:amount" content="2"/>
<meta property="product:price:currency" content="USD"/>
</head>
</html>
For some reason, I always get this error:
An error occurred. Please try again later.
API Error Code: 1383051
API Error Description: Can't parse open graph object. Property price doesn't exist for item 218298155037105
But I am sure that price to the product data is correct, and I can see that price is set! What else might be causing this?
You have an og:url tag pointing to a different URL - this redirects Facebook to that URL, which is not in your control and may not have the correct tags for your product
the og:url tag should point to the canonical URL for your object, probably the same URL you're rendering the tags from in most cases

You must specify one of `href`, `id`, `profile_id` or `name`

I dont know what could be wrong. I constantly receive this messages on my website when I'm logged as an administrator.
I'm using this OG Tags
<meta property="og:image" content="http://www.soychile.cl/imagenes/soychile-avatar.jpg"/>
<meta property="og:title" content="Acto de aniversario del Golpe: tres candidatos presidenciales han confirmado su asistencia | soychile.cl"/>
<meta property="og:url" content="http://www.soychile.cl/Santiago/Deportes/2013/09/03/197812/Aniversario-del-Golpe-tres-candidatos-presidenciales-han-confirmado-su-asistencia.aspx" />
<meta property="og:description" content="Evelyn Matthei, Ricardo Israel y Alfredo Sfeir aceptaron la invitación del Gobierno. Rechazaron Michelle Bachelet, Marcel Claude, Tomás Jocelyn-Holt y Roxana Miranda. Franco Parisi está en duda." />
<meta property="fb:app_id" content="number" />
<meta property="fb:admins" content="number" />
<meta property="fb:admins" content="number" />
<meta property="og:type" content="article" />
<meta property="article:author" content="http://www.soychile.cl/" />
<meta property="article:tag" content="Acto de aniversario del Golpe: tres candidatos presidenciales han confirmado su asistencia | soychile.cl"/>
<meta property="article:tag" content="Evelyn Matthei, Ricardo Israel y Alfredo Sfeir aceptaron la invitación del Gobierno. Rechazaron Michelle Bachelet, Marcel Claude, Tomás Jocelyn-Holt y Roxana Miranda. Franco Parisi está en duda." />
<meta property="article:tag" content="soychilecl" />
But It doesnt show any error when I'm not logged as admin

Post swf with parameters to facebook via application

I have a facebook application where the user choose 4 of his friends and then it creates a video (swf) with the pictures of your friends in it (loaded via xml). So I need to share this video on the user timeline. Everything works fine but the video is not embedded in the post on his timeline, there is only a post with the link to the page in it.
The weird thing is, if I post the url directly on my timeline, the video is embedded, but not if the same link is posted via the application.
here is my code called by the share button in js :
function postToFeed() {
var obj = {
method: 'feed',
link: 'https://mysite.com/flash/share-page.php?id=22',
picture: 'https://mysite.com/images/video-preview.jpg',
name: 'Name',
caption: 'Caption',
description: 'Description'
};
function callback(response) {
//some code here
}
FB.ui(obj, callback);
}
and the code in my share-page.php
<?php
$id_inscription = $_GET['id'];
$video_url = 'https://mysite.com/flash/share-page.php?id=22';
$video_preview_image = 'https://mysite.com/images/video-preview.jpg';
?>
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="en">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta property="og:video" content="<?php echo $video_url; ?>"/>
<!-- Open grah tags for Facebook -->
<meta property="og:title" content="Test video player" />
<meta property="og:description" content="A video player interface experiment." />
<meta property="og:type" content="video" />
<meta property="og:url" content="<?php echo $video_url; ?>"/>
<meta property="og:image" content="<?php echo $video_preview_image; ?>"/>
<meta property="og:site_name" content="Site name"/>
<!-- Video specific open graph tags -->
<meta property="og:video" content="<?php echo $video_url; ?>" />
<meta property="og:video:secure_url" content="<?php echo $video_url; ?>" /> <!-- Required for people on Facebook who have secure browsing enabled! -->
<meta property="og:video:width" content="325" />
<meta property="og:video:height" content="180" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<script src="js/swfobject.js"></script>
<script>
var flashvars = {
xmlUrl:"xml/data-<?php echo $id_inscription; ?>.xml",
policyFileUrl:"http://profile.ak.fbcdn.net/crossdomain.xml"
};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "",
wmode: "opaque"
//wmode: "direct" // can cause issues with FP settings & webcam
};
var attributes = {
id:"content"
};
swfobject.embedSWF(
"app.swf",
"altContent", "480", "270", "10.0.0",
"expressInstall.swf",
flashvars, params, attributes);
</script>
</head>
<body>
<div id="altContent">
<p>Get Adobe Flash player</p>
</div>
</body>
</html>
Found it, in the javascript you have to add
source: 'https://mysite.com/flash/app.swf'
DOesnt work for me .
Also facebook says ,It is NOT supposed to work By Design .
https://developers.facebook.com/bugs/589975484398226?browse=external_tasks_search_results_526fc388b99e18881434478
Please share here your code snippet if you could make it work . I have the meta tags taking care for the secure video Url as well .

Facebook Meta Tags

My problem was when some one is liking my website, the image, description, title etc. where completly wrong it took the first which is the service level agreement in my website. So I figured I have to add opengraph meta tags so I did:
<meta property="og:url" content="http://url.com/" />
<meta property="og:site_name" content="My Web" />
<meta property="og:type" content="website" />
<meta property="og:title" content="My Web.com" />
<meta property="og:image" content="http://url.com/logo.png" />
<meta property="og:description" content="My Web is a new community" />
<meta property="fb:app_id" content="7363627862327638" />
The problem is, it is still not working, the likes information is wrong, and I waited atleast 72 hours, so the cache of Facebook is not the problem.
Does anyone know what could be the problem? Thanks alot already!
Checkout this.. tutorial.
and use facebook debug tool to clear cache and set new metatags for your page.
Try this it worked for me -
Use Dynamic content in meta tag.
<?php
$params = array();
if(count($_GET) > 0) {
$params = $_GET;
} else {
$params = $_POST;
}
// defaults
if($params['type'] == "") $params['type'] = "restaurant";
if($params['locale'] == "") $params['locale'] = "en_US";
if($params['title'] == "") $params['title'] = "default title";
if($params['image'] == "") $params['image'] = "thumb";
if($params['description'] == "") $params['description'] = "default description";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# MY_APP_NAME_SPACE: http://ogp.me/ns/fb/MY_APP_NAME_SPACE#">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- Open Graph meta tags -->
<meta property="fb:app_id" content="MY_APP_ID" />
<meta property="og:site_name" content="meta site name"/>
<meta property="og:url" content="URL?type=<?php echo $params['type']; ?>&locale=<?php echo $params['locale']; ?>&title=<?php echo $params['title']; ?>&image=<?php echo $params['image']; ?>&description=<?php echo $params['description']; ?>"/>
<meta property="og:type" content="MY_APP_NAME_SPACE:<?php echo $params['type']; ?>"/>
<meta property="og:locale" content="<?php echo $params['locale']; ?>"/>
<meta property="og:title" content="<?php echo $params['title']; ?>"/>
<meta property="og:image" content="URL<?php echo $params['image']; ?>.png"/>
<meta property="og:description" content="<?php echo $params['description']; ?>"/>
</head>
</html>