Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook is not recognizing my meta tags

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="http://www.facebook.com/2008/fbml">
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Language" content="en" />
        <title></title>
            <meta property="og:title" content="Katha Screenplay Darsakatvam (KSD) Appalaraju "/>
        <meta property="og:type" content="movie"/>
        <meta property="og:url" content="http://reviewumpire.com/movies/54-katha-screenplay-darsakatvam-ksd-appalaraju-"/>

        <meta property="og:image" content="http://reviewumpire.com/images/uploads/movie/vertical/54/vert.jpg"/>
        <meta property="og:site_name" content="ReviewUmpire"/>
        <meta property="fb:app_id" content="162180660488445" />
        <meta property="fb:admins" content="57728908711" />
        <meta property="og:description" content="23% scored on reveiwumpire."/>

        <meta name="google-site-verification" content="RXjWilEYk0eC_6ulYSV_AaFVSQe8nHI6Zw4_W9dVR5I" />
        <script src="/javascripts/vendor/jquery.min.js?1306239220" type="text/javascript"></script>
    <script src="/javascripts/vendor/quote.rotator.js?1306239220" type="text/javascript"></script>

    <script src="/javascripts/vendor/scroll.js?1306239220" type="text/javascript"></script>
    <script src="/javascripts/vendor/rails.js?1306239220" type="text/javascript"></script>
    <script src="/javascripts/application.js?1306239220" type="text/javascript"></script>
        <link href="/stylesheets/compiled/grid.css?1306239220" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/compiled/text.css?1306239220" media="screen" rel="stylesheet" type="text/css" />
        <link href="http://fonts.googleapis.com/css?family=Play:regular,bold&amp;subset=greek,latin" media="screen" rel="stylesheet" type="text/css" />
        <link href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&amp;subset=greek,latin" media="screen" rel="stylesheet" type="text/css" />
        <meta name="csrf-param" content="authenticity_token"/>
    <meta name="csrf-token" content="ZrmCr3Qg7dNgPynFSSyFEHNaSpOUMYNEput1oUcyMIE="/>
      </head>

when i use facebook lint http://developers.facebook.com/tools/lint it is not detecting any of my facebook tags

Warning
Required Property Missing   og:title is required
Required Property Missing   og:type is required
Required Property Missing   og:image is required
Required Property Missing   og:url is required
like image 808
Subba Rao Avatar asked May 24 '11 11:05

Subba Rao


4 Answers

I know that this is an old question but I can't really see the answer that I find - just remove slash (/) at the end of facebook meta code.

So Facebook create wrong code if you not using right DOCTYPE:

<meta property="og:title" content="Katha Screenplay Darsakatvam (KSD) Appalaraju "/>

right is:

<meta property="og:title" content="Katha Screenplay Darsakatvam (KSD) Appalaraju ">
like image 178
Dampas Avatar answered Oct 28 '22 16:10

Dampas


I had the same problem and what I found out was that Facebook recognizes

AddMetaData("og:url", "yourURL")

and then goes to yourURL to get the other tag info like og:title...etc

like image 44
kawal Avatar answered Oct 28 '22 16:10

kawal


The URL you've specified at the og:url meta tag contains an invalid fb:admin. Please update it with a valid admin ID and try again.

See Lint information at the Facebook Debugger Tool

Object at URL "http://reviewumpire.com/movies/54-katha-screenplay-darsakatvam-ksd-appalaraju-" of type "website" is invalid because the given value "57728908711" for property "fb:admins" could not be parsed as type "fbid". Invalid Admins -> The fb:admins field contained some invalid ids, namely 57728908711

like image 6
Daniel Torvisco Avatar answered Oct 28 '22 17:10

Daniel Torvisco


You're missing the namespace definitions xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/"

Edit: <html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

like image 2
AllisonC Avatar answered Oct 28 '22 16:10

AllisonC