facebook comments

100 views
Skip to first unread message

Jose

unread,
Sep 23, 2012, 7:31:53 PM9/23/12
to web...@googlegroups.com
Hello

I am developed a website and want to include the facebook comment box.

I went to [1] and got the following code:

    {{url = "http://www.my_domain.com%s/%s"%(request.url,request.env.query_string)}}   
    
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>      
         
    <div class="fb-comments" data-href="{{=url}}" data-num-posts="4" data-width="620"></div>

The comments work well, but the problem I have is that it shows the message:

Warning: http://www.my_domain.com/fpaa2/default/obra/6/ is unreachable.

debugging:

Errors That Must Be Fixed
Missing Required Property: The 'og:url' property is required, but not present.


I saw many people it happens. I followed some suggestions, but can not find solution

Any idea?

Jose


howesc

unread,
Sep 24, 2012, 7:14:40 PM9/24/12
to web...@googlegroups.com
sounds like you need to add a meta property to the HEAD of your HTML:

<meta content="http://www.starmakerstudios.com/song/106383654/starships" property="og:url">

of course you'll want to use your page URL where my URL is.

i believe that you can use response.meta: http://web2py.com/books/default/chapter/29/04?search=response.meta

good luck!

cfh

Jose

unread,
Sep 25, 2012, 10:43:30 AM9/25/12
to web...@googlegroups.com


El lunes, 24 de septiembre de 2012 20:14:40 UTC-3, howesc escribió:
sounds like you need to add a meta property to the HEAD of your HTML:

<meta content="http://www.starmakerstudios.com/song/106383654/starships" property="og:url">

of course you'll want to use your page URL where my URL is.

i believe that you can use response.meta: http://web2py.com/books/default/chapter/29/04?search=response.meta

good luck!

cfh


Hi

I have this:

<meta property="og:url" content="{{=url}}" />

where url = "http://www.my_domain.com%s/%s"%(request.url,request.env.query_string)

the same used in:

<div class="fb-comments" data-href="{{=url}}" data-num-posts="4" data-width="620"></div>

Jose

Jose

unread,
Sep 25, 2012, 11:40:50 AM9/25/12
to web...@googlegroups.com
Hi

if the url is http://www.my-domain.com

the message is not shown, but if I add the name of the application, it displays the warning


José

Christian Foster Howes

unread,
Sep 25, 2012, 11:43:58 AM9/25/12
to web...@googlegroups.com
what does http://developers.facebook.com/tools/debug tell you when you
put your page URL in it? i use that to get feedback from
facebook....sounds like there is something odd going on.

cfh
> Jos�
>
Reply all
Reply to author
Forward
0 new messages