FB Like Plugin Help!

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
newrecruit02
Forum Members
Forum Members
Posts: 98
Joined: Wed Aug 01, 2012 7:46 pm

FB Like Plugin Help!

Post by newrecruit02 »

Hi guys and seasons greeting, I have been pulling my hair out trying to get our FB like plugin to work, basically NOTHING is recording on the FB page and is getting beyond frustrating.. From my research it appears that there is a bug with this plugin? Any input appreciated...

Symptoms: Person likes our FB plugin from website and is never recorded on FB or increases the amount of likes... code below.

<!--FB code-->
<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;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</__script>

<!--end FB code-->

<!--code location-->
<div class="fb-like" data-href="https://www.facebook.com/pages/At-Comm- ... 8872283063" data-width="450" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
<!--end code location-->

CMS Version 1.10.3


Installed Modules
CMSMailer 2.0.2
CMSPrinting 1.0
FileManager 1.2.0
MenuManager 1.7.7
MicroTiny 1.1.1
ModuleManager 1.5.3
News 2.12.3
Search 1.5.4
ThemeManager 1.1.4
FormBuilder 0.7.3
Captcha 0.4.6
jQuery 1.2.0
CGExtensions 1.31
ExtendedTools 1.3.3
Analytics 1.2.2
NoDiggBar 1.0
AComments 1.1.1
FrontEndUsers 1.18.1
Gallery 1.6.1
FormBrowser 0.4.2
chandra

Re: FB Like Plugin Help!

Post by chandra »

You have to set the Javascript inside {literal} Javascript {/literal} tags.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FB Like Plugin Help!

Post by velden »

I think data-href attribute should have url of webpage as it's value. Not point to Facebook.

For normal pages you can get url via {cms_selflink href="$page_alias"}

Alternatively have a look at CGSimpleSmarty module and it's self_url method.
newrecruit02
Forum Members
Forum Members
Posts: 98
Joined: Wed Aug 01, 2012 7:46 pm

Re: FB Like Plugin Help!

Post by newrecruit02 »

Hi guys,

I do have it in literal strings,

<!--FB code-->
<div id="fb-root"></div>
{literal}
<__script__>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</__script>
{/literal}
<!--end FB code-->

FB debugger found the following: Any ideas on how to easily implement this???????

Like Button Warnings That Should Be Fixed
Admins And App ID Missing fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed story that generates a high click-through rate.
Like Button Tag Missing og:title is missing. The og:title meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.
Like Button Tag Missing og:type is missing. The og:type meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.
Like Button Tag Missing og:image is missing. The og:image meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.
Notice
Open Graph Warnings That Should Be Fixed
Inferred Property The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
og:image should be larger Provided og:image is not big enough. Please use an image that's at least 200x200 px. Image 'http://www.atcomm.com/uploads/images/ba ... le-1.5.png' will be used instead.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FB Like Plugin Help!

Post by velden »

What about my suggestion regarding the url you used in the data-href attribute?

Open Graph tags can be implemented manually in the template(s) or using module MetaMax.

Though, I don't think those missing tags are the cause it's not working now.
newrecruit02
Forum Members
Forum Members
Posts: 98
Joined: Wed Aug 01, 2012 7:46 pm

Re: FB Like Plugin Help!

Post by newrecruit02 »

velden wrote:What about my suggestion regarding the url you used in the data-href attribute?

Open Graph tags can be implemented manually in the template(s) or using module MetaMax.

Though, I don't think those missing tags are the cause it's not working now.
thanks Velden, If I use the www addresss in the HREF then I was told I would not be able to calculate correctly on the FB end, our goal is to view actual click recipients for promotional pieces etc. We had this prior until I noticed none of our click recipients were showing up on our "view clicks" reports on FB.

Have you tried to verify anything of the sort?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FB Like Plugin Help!

Post by velden »

I've implemented OG tags. I like to do that 'manually' in the template.

I don't understand why the data-href should point to your facebook page. I think it's wrong.

But I don't fully understand what you're trying to accomplish; " our goal is to view actual click recipients for promotional pieces etc."

I'm not a expert on this topic, but I guess it should not be too hard to implement.
newrecruit02
Forum Members
Forum Members
Posts: 98
Joined: Wed Aug 01, 2012 7:46 pm

Re: FB Like Plugin Help!

Post by newrecruit02 »

Sure, basically, people can like our page all day long, but the problem is that we can't view who is doing this, nor is FB calculating these additional likes....

We need to know who these people are so we can finish the transaction and FB needs to calculate these correctly which they are not.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: FB Like Plugin Help!

Post by frankmanl »

Are you sure you use the FacebookLikeButton tag correctly?
Hi guys,

I do have it in literal strings,

<!--FB code-->
<div id="fb-root"></div>
{literal} ...
There is no need to use {literal} at all, just install the tag and put {FacebookLikeButton} at the place you want it to appear.
And yes, be sure to use Open Graph tags (see http://forum.cmsmadesimple.org/viewtopi ... =7&t=68497).

and maybe you could upgrade from 1.10.3, released September 2012, to 1.11.9? that would not hurt
Post Reply

Return to “Modules/Add-Ons”