Facebook namespace not working in JSF?

Asked

Viewed 116 times

1

I’m using personal jsf, I’m trying to make facebook recognize my metatags:

<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 will I test on facebook debug with the url of my website, he returns me this error:

fb:app_id hasn’t been included in the meta tags. Specify the app ID so that Stories Shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog. Otherwise, the default app id( 966242223397117 ) will be Assigned.

It seems he doesn’t recognize the tags, how can I fix?

  • Enter the code on your page. This will make it better to help you

  • 7

    Possible duplicate of Facebook namespace does not work JSF

  • 1

    My goodness..! You’re doubling question left and right... If you can give a quick check type on [help], you will see what is the minimum agenda to work here, there is no mystery but you can forget this forum trip ;)

  • Friend all come here looking for help, writing someone could help me is redundant and nothing adds to doubt. Make intuitive headlines and do not duplicate question, here is community, keep duplicating will not bring you faster answers. I hope you’ll take it as a constructive criticism.

  • If a future question is to be closed it is for a good reason, what you should do is correct the problems in the question and wait for it to be reopened and not duplicate it.

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 online page. I did that and the tags are there correctly.

Therefore, the problem is at some point related to the Facebook script. I don’t mean that he is in some error, but that probably his configuration is not adequate.

Make sure you’re not putting the Facebook script in some frame, where the document doesn’t have the tag meta.

Also check that this data is correct, after all it seems to me that you copied the tags of some site such as "David Walsh Blog". Note that you can’t just copy tags from anywhere. See facebook documentation for how to do this type of integration. In the case of App ID, you need to have your website configured according to your ID dashborard.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.