facebook comments plugin not working on aspx page - asp.net

I'm trying to get the facebook comments plugin working on my aspx page..but it is not appearing on the page.
I am using the Facebook.NET api from codeplex for authorization. I inserted the code that was generated from the Facebook Comments plugin page...
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId={MyApp's ID}&amp;xfbml=1"></script>
<div>
<fb:comments numposts="15" width="425" publish_feed="true"></fb:comments>
</div>
I can see that the script is retrieved by inspecting the resulting html code in firebug...but can't figure out why the plugin is not being rendered...
any help is appreciated...thx

Ok, i found out the solution,
It seems that the tag should be within the element.
just move the script tag within the and it will work
Following code worked for me.
<div id="fb-root">
<script src="http://connect.facebook.net/en_US/all.js#appId=__YOUR_APP_KEY_HERE&xfbml=1"></script>
</div>
by doing the above i got the comments box to show up....
Now the problem is that, when i click on the POST Button, it doesn't post it... have to figure out why... anyone has solution for this ?

Related

How do I show the current page title or label?

How to show the current page title or label?
I have tried with below code -
<data:blog.searchLabel/>
Display the label when you are on URL search label only. I need a code that displays HOMEPAGE when you are on homepage URL and shows Label of posts When you are on blogger posts !!
I couldn't do that so I called another div that display the tags but its super bad since it gets doubled when I call it for no reason.
$(function(){
$('.label-head a').clone().appendTo('.repheader');
});
<div class='tm-menu'>
<div class='body-row repheader'><data:blog.searchLabel/></div>
<div class=label-head>
</div>
I solved the problem by myself.
I found two divs so I deleted one of them.
I found blogger tag that display the page title, here is a link which you might find helpful.

A code in Wordpress footer created by dFactory cookie plugins

I'm not a technical shark which is why I hope one of you can help me.
I installed a cookie by dFacotory to my Wordpress page, and now I get a code in my footer.
enter image description here
I dont know how to remove it, and when I inspect the element and track the code I get following code;
<body class="home page-template-default page page-id-14 logged-in admin-bar full-width
header-shadow bg-fill lightbox
nav-dropdown-has-arrow customize-support
cookies-set cookies-accepted" data-gr-c-s-loaded="true">…</body>
Can anybody help me? (BTW I need to put some spaces between the code, so it would be shown as a code, don't know if I did it correct)

Google tags, Code apears in my site

I put google tags on my website and when I open the page it shows the code, how to solve it?
<head><script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXX');
</script>
and
<body>
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
</body>
It would appear that you have a custom HTML tag with a Facebook tag and forgot to wrap this in <script></script> tags (also your example code is missing the script tags around the GTM script. Also don't be confused by the fact that the word "tag" has three different meanings in this sentence).
Add script HTML tags (<script></script> ) to you FB tag and publish, then the problem should be solved.
The problem is not your "Google Tags", it's a custom tag you've used (facebook as i look in your code) You must have forgot around a custom tag. Dig in your tag section of GTM.

Like button doesn't give the "like" to the right url

I posted a question on stackoverflow and I haven't received any answers yet. maybe you can help me....
This is the problem:
Like buttons on my page that suppose to give "like" to different comments by their different 'href' given, raise the like count to all like buttons.
Link to my website page:
http://petbuy.co.il/ProductCard.aspx?product_id=7873&friend_Id=1000
look at the bottom of the page and try to "like" one of the comments and then refresh the page.. If you use a developer tool, you can see that every button iframe gets a different href... The "friend_id" param changes in each button href..
BUT !
If you look at the console log, you see that the response for this request of clicking the like button, uses only the first param of the url:
The href is:
http://petbuy.co.il/ProductCard.aspx?product_id=7873&friend_Id=1000
And it uses only the product_id=7873 without the friend_Id=1000.
I tried to switch the params, and this time it took only the friend_Id=1000".. I need them both :((
Thanks!!
Make sure you add the following Open Graph Metatag:
<meta property="og:url" content="http://petbuy.co.il/ProductCard.aspx?product_id=7873&friend_Id=1000" />
I did not find that tag at all in the code, it should be on EVERY page and it needs to match the URL.
Also make sure the URL is encoded correctly, see here: Encode URL in JavaScript?
...and i assume Server.URLEncode in ASP.
And always use the generator: https://developers.facebook.com/docs/plugins/like-button
It will show you exactly how the URL needs to show up in the code.
You need two diffrent urls for the like button
<div class="fb-like" data-href="http://petbuy.co.il/ProductCard.aspx?product_id=7873&friend_Id=2000" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
and
<div class="fb-like" data-href="http://petbuy.co.il/ProductCard.aspx?product_id=7873&friend_Id=1000" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
The Meta og:url is correct and describs the url of the page..

Joomla module positions not working

I'm using Joomla, and as far as I can tell I have done everything right for my template, but can't get Module positions to work
I have the correct XML file setup I think and this is my HTML tag:
<jdoc:include type="modules" name="topnav">
The page is X if you look at the page source it is rendering that tag - I would expect that to disappear, and to be replaced with the content I have told the Joomla backend to put there?
Very confused!
Try this-
<jdoc:include type="modules" name="topnav" />
You are missing closing tag.
let me know if this does not work.
How are they not working? Are the positions updating in admin, but not on the website? Or are they not updating in the admin page too? From what I remember of Joomla, you have to click on the 'save' icon once you've rearranged all your positions.

Resources