facebook namespace do not work in JSF?

1

I'm using personal jsf, I'm trying to make facebook recognize my meta tags:

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    xmlns:og="http://ogp.me/ns#"
    xmlns:fb="http://www.facebook.com/2008/fbml">

<h:head>
<title><ui:insert name="title-principal"></ui:insert></title>
<ui:insert name="head-meta-principal" />
<link rel="shortcut icon" type="image/x-icon" href="#{request.contextPath}/resources/images/logocab.png"/>

<meta property="fb:app_id" content="xxxxxx" /> 
<meta property="og:title" content="Facebook Open Graph META Tags"/>
<meta property="og:site_name" content="David Walsh Blog"/>
<meta property="og:url" content="http://www.latterpage.com/login"/>
<meta property="og:image" content="http://www.latterpage.com/resources/images/126DIARIO_DAYBOOK.png"/>
<meta property="og:image:width" content="450"/>
<meta property="og:image:height" content="298"/>
<meta property="og:description" content="Facebook's Open Graph protocol allows for web developers to turn their websites into Facebook "/>

However, when I'm going to test on facebook debug with the url of my site , it returns me this error:

  

fb: app_id has not been included in the meta tags. Specify the app ID so that shared stories to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open share dialog. Otherwise, the default app id (966242223397117) will be assigned.

It seems that it does not recognize the tags, how can I resolve them?

    
asked by anonymous 28.01.2016 / 16:40

1 answer

0

Your problem has nothing to do with the server or JSF.

The first thing you should do to check what happens is to look at the source code of the page online. I did this and the tags are there correctly.

So the problem is at some point related to the Facebook script. I do not want to say that it has some error, but that probably its configuration is not adequate.

Make sure you are not putting the Facebook script in some frame, where the document does not have the tag meta .

Also check if this data is correct, it seems to me that you have copied the tags from some site such as the "David Walsh Blog". Note that you can not simply copy tags from anywhere. See the Facebook documentation for how to do this kind of integration. In the case of App ID, you need to have your site set up according to the ID of your dashborard dashborard . >     

01.02.2016 / 01:46