Facebook Like Button module
Please note: The button you see above the article ↑ is part of the new open graph plugin we are working on. The module demo is below. We will post about this soon!
In Facebook's bid to take over the world, they have introduced the Facebook Like Button. We decided that it might be useful to have a Joomla module that auto-generates the code for this button, so we set to work and in an hour we had assembled a first version that seems to run pretty well. We are assuming that the Like Button will change over time, so we are trying to keep our code as easy to change as possible. For a picture and some more information continue reading below.
The module allows you to output the button either in the iframe friendly format or as FBML if your site is using FBML. It also has a toggle switch to automatically discover the URL for each page it is on or you can just place a site wide one. Otherwise it should allow for all configurations available if you were to hard code it. Note: The module comes without implicit or explicit warranties and must be used at own risk.
Future improvements would be to use Open Graph meta tags but we have yet a good way to try and match specific ones to page content.
Here is an example of the button for this page with the language set to German, default is English (setting language only works in iframe mode):
**Lori points out some clarification on different button features:
"The basic Like button is available via a simple iframe you can drop into
your page easily. A fuller-featured Like button is available via the
** Playak points out the following bug in the Facebook publisher which may cause it not to read pages properly:
i found the problem i think. i noticed that the facebook publisher also has problems reading my pages, so i started narrowing down what caused that. it seems to be in the joomla menu. when it has span tags with just a space inside, facebook chokes on it.
to
Note the space in the spans
*** Jacob found a solution to the problem:***
in my templates/templatename/html/mod_mainmenu/default.php.
Line 33&35...removed the space. Also had to change the space in the span "l" and "r" in functions.php in the template root folder.
NOTE: removing the space did not work I had to put in ' '
$lspan = & $liFirstChild->addChild('span', array('class' => 'l'));
$lspan->setData(' ');
$rspan = & $liFirstChild->addChild('span', array('class' => 'r'));
$rspan->setData(' ');
Please check out his blog: http://www.jacobv.com/technology/page-could-not-be-found-error-with-facebook-like-button/ for more information and other goodies.
Please take a look here http://developers.facebook.com/docs/reference/javascript/ for more information on FBML
216 Comments
-
Hi Efil,
I have updated the module to not use JURI::Current(); It seems like the optional parameters were not passed into the URL. I have replaced the Current() function with one that should read the additional parameters.
You can see that it works here as it echoes back the proper URL:
http://www.vergegraphics.com/urltest.php?option=com_content&view=artic le&id=2984:2009-09-11-15-41-57&catid=13:joomla&Itemid=100066\n\ ;nThanks
I will also put in a shameless plug to make your URLs SEO friendly :)
http://www.vergegraphics.com/blog/joomla/59-activating-seo-friendly-ur ls-in-joomla
-
Hi Max
I am having the same issue - the Like button just likes the domain wwww.rodephsholom.com, not the actual page (such as http://www.rodephsholom.com/index.php?option=com_content&view=article& id=357)
What should I do to make it work correctly?
Thanks so much. Looks like your support is thorough and clear. I hope to experience the same generosity with your time!
Jason
-
Hi Jason,
if you look in the file itself there should be a commented out line:
//($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
remove the // infront of that and add // to this line:
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
Let me know how that goes.
-
thanks for the reply :)
we will wait!
however we test the module on a joomla 1.5 and world perfect! thanks again!
good job and really quick action!
-
Um its ok but for some reason I get a massive white box under the module...
-
cheers for that I will reinstall it now!
-
Hi Chris,
do have a link I could look at? I am thinking that it might have something to do with the url in Joomla. It seems to work with SEO urls but as soon as you pass in a Joomla native URL with all the ampersands and additional parameters I can see Facebook not liking it.
-
Hallo Daniel,
kannst du mir vielleicht einen Link zu schicken wo das Modul zu sehen ist? Ich denke das es bei Facebook Probleme gibt wenn die URL mit mehreren Variablen gespickt ist, bzw. SEO freundliche URLs nicht aktiviert sind. Vielen Dank für dein Interesse an dem Modul!
-
Hi Chris,
have you set autodiscover to on? It seems like the URL in your iframe points to:
http://sph.bu.edu/chrisinsider/Recent-News/s.htm
while your page is:
http://sph.bu.edu/chrisinsider/index.php/Recent-News/s.html
it seems you are missing the index.php in the url.
-
Hi Chris,
I have updated the module to not use the native Joomla JURI::current() function to get the URL. Instead it uses a generic php function. I have updated the module, and if you would not mind trying it and reporting back, that would be greatly appreciated!
-
Hi,
Wouldn't this be more useful if it was a content plugin instead of a module and the user to be able to publish it below each article?
Thanks,
Igor.
-
Hi Igor,
yes it would be very useful as a content plugin. However, we often find that we make pages totally composed of modules, like our frontpage and that it is easier to load modules into content via the loadposition plugin.
For a content plugin I would also prefer to leverage open graph meta tags automatically, so we will wait until those are completely defined and established. All that is to say that eventually we will probably produce a content plugin, but right now the best we could reliably do is a module, and a very simple one at that.
-
Including the module into articles via loadposition plugin does the job, but what if i have thousands of articles that I wish that 'like' button to appear on?
Edditing and adding {loadmodule} in each of them doesn't sound like a nice solution.
-
Hi Igor,
I agree, that would be pretty horrible. Given that we probably won't put out a plugin till the Open Graph specs are laid out better (lack of time and resources), I am hopping somebody else will publish a content plugin soon rather than later. If it does pop up, I will be more than happy to link it here.
-
Hi, i want to know how to include the button in to the article like a plugin not a module, how can i do this to call the current URL in the code
-
Hi Juan and Kiya,
you would probably need this module in form of a plugin. You can work with individual pages using the loadposition plugin right now, but it would be a huge hassle. We also want to eventually make a plugin but we would in that case like to use the Open Graph meta tags, which seem to still be in flux.
I am sure somebody soon will write a similar plugin with the same scope as this module, and I will be happy to link it on this page, till we get around to making the one we want to see.
-
I installed it and gave it a test. I got an error
"The page at http://www.ablegamers.com/index.php?option=com_content&Itemid=86&a mp;catid=37&id=951&lang=en&view=article could not be reached."
-
Hi Mark,
the URL seems to resolve alright for me. If Facebook is throwing that error it might because, according to your webpage, you are moving servers? Facebook might not have received the updated DNS yet. If you send me a link with a test page I can take a look though. Thanks for giving it a try!
-
yah that move is happening this evening. The DNS has not changed yet so that is not the issue :(
-
Hi Marc,
yea it seems that there is a problem with having the iframe run on sites with additional facebook features (connect, comment, share). I have not been able to pinpoint which one it is.
Facebook is essentially returning a valid url and saying it is not able to connect to it, which makes no sense.
-
Me again : when I switch to button count, the count seems to stay at 1 even if 2 people liked it..
?
-
Thanks !
if i switch to fbml it disappears (maybe this helps)
-
Hi getimo,
If you send me a link I can take a look. I use a php function that reads the $_SERVER variable.
Maybe there is a problem with them not being read properly?
Also thank you very much for your suggestions, I agree that those things should be in a good plugin and when we do get around to it, I would love to add those in!
-
Thank you for your fast answer.
I've found another issue: I'm using jomsocial too with facebook connect. If both buttons (the "old" facebook connect button and the like button) then there are several issues regarding the popup behaviour.
Noticing that I'm really confused on how the whole thing should work in the future? Of course I want to benefit from all resources of this new data model but don't know which system to use,
For the FBML type you need an application. I already setup an application for jomsocial/facebook connect and so on...
I'd love to read a documentation on how to act now generally.
-
Hi Getimo,
Interesting because it seems that most people who are having trouble have some sort of other facebook modules installed.
I too am a little frustrated on which way we are going with all this so I am trying to keep it simple now and have some of the better stuff come out when the dust has settled.
-
Great Job!! Thank you very much! I'll wait for the plugin too ;)
-
Hi,
Great plugin...unfortunately I am having the error "The page at XXXX could not be reached."
Did any of the others who had this issue resolve their problem? Max, I've included the website which shows the problem in the comment submission. Any of the articles will show your module implemented...and the error message on clicking the button
Thanks for any help on this.
-
Hi Jacob,
that is really strange. The code seems to be working alright. I actually think this an error on facebook end. I generated a code for your button using the facebook button generator found here:
http://developers.facebook.com/docs/reference/plugins/like
and posted the html it in a testbed page:
http://vergegraphics.com/demo
you will see it returns the same error. Interestingly enough Mark from a few comments above had the same bottom bar installed as you, with the same errors. The error is returned by facebook and the URL loads fine in my browser so it looks like facebook is unable to read the page properly for whatever reason.
-
Max, I uninstalled the Wibiya Toolbar and it looks like your module works just fine. Hmmm I do not want to have to choose the toolbar over like
:(
-
Hi Mark,
I am really sorry to hear that it is giving you so much trouble. If you really want to try and debug, try and use the code generated here:
http://developers.facebook.com/docs/reference/plugins/like
and stick it into a custom html module. Be sure to use the URL of a page that did not work previously. If it works then there is something wrong with the module, if it still doesn't work then it is something with facebook not playing nicely. My next step would be to set up an empty page, add the code, and then activate the modules one by one on the page, as to so see which ones are causing a conflict.
-
Hello, i have a problem, my facebook buttons doesnt detect the web page link. it only likes main page you can check it from my website. thanks. (i am using acesef for seo)
-
Thank you for your interest max, waiting for solution.
-
Nice module. Thanks for the fast work!
I'm also getting the same error though: error "The page at XXXX could not be reached."
tried auto-discovery on and off, fbml on/off, and disabled jfbc (facebook connect). nothing helps. driving me mad...
-
Hi Jeroen,
do you use some sort of SEF package or any other URL modifier? I am starting to wonder exactly what agent Facebook uses to contact the pages. I could even imagine that a strong robots.txt could block them if they use an unusual browser identifier string.
-
it also does not work for me: "The page at http://www.dalinyebo.co.za/index.php could not be reached."
Any ides where to start with trouble shooting?
-
Hi Philipp,
I am having trouble connecting to your website. Do you experience any downtimes? It might be that Facebooks servers are timing out, assuming that they have a a very short timout period.
Connecting to the website seems to be slow but not horrible:
http://just-ping.com/index.php?vh=http%3A%2F%2Fwww.dalinyebo.co.za&c=& s=ping!
it might be that the delay is causing them to not connect immediately and time out. I would try and use the button generator found here:
http://developers.facebook.com/docs/reference/plugins/like
and see if that works any better. Good luck!
-
Hello, Thank you for the module. Can I use just for the blog? I mean, I just want to use it in my post, not in all the website. Any chance?
-
I'm having the same issue some other people have reported - Facebook returns an error that the page could not be reached.
Is there a way to utilize the sef URL generated by sh404sef when sending the data to the Facebook server? I suspect the over complicated none SEF url is just too much for Facebook to handle.
-
Hi Neth,
yea it seems while the url being submitted:
http://www.arbev.co.il/index.php?option=com_content&Itemid=63&catid=25 &id=133&lang=he&view=article
is a legal one, Facebook does not seem to know what exactly is going on. I find it interesting that sh404sef seems to rewrite the URL after it has been parsed by the Server. I will try and see if I can include their url generation method in the module.
-
Hello, I can not seem to get this to display properly!!
A big box comes up and shows my facebook page, greyed out like, when logged in. When logged out of facebook, a facebook home screen appears, and when hovered over, it says something like to take me to facebook home..
Any suggestions??
soulmateplan.com
-
I could not install. I got the following error message:
* Warning! Failed to move file.
* JFolder::create: Could not create directory
* Unable to create destination
-
Hi Randy
that looks like a permission problem to with the folders in the joomla directory. I have seen that happen when the folders do not have the correct permissions or the temp folder is not set up correctly:
http://kslim.net/blog/computing-2/internet/jfoldercreate-could-not-cre ate-directory
-
The module does not show up in my uninstall module extension manager, but it is still in my module manager. How can I uninstall? Thanks!
-
Hi Randy,
usually when a module fails to install properly you have to remove the remnants manually.
From a google result:
One way is to delete any files and folders added by the extension. Depending on the extension, search through the "components", "modules" and "plugins" directories in your Joomla! tree and remove the associated entries. Repeat the process in the "administrator" directory. Afterwards, access the database using phpMyAdmin for example and remove entries relating to the extension.
-
Do you think I can just just delete the folder from joomla using ftp?
-
I get the same could not be reached error message on this site http://www.actionwebsiteandseo.com/
-
Hi Randy,
do you use any special access restrictions on your site? I am gathering more and more that Facebook has a problem with connecting to certain sites because the error it returns is:
Website Inaccessible
I would try and see if the button generator by facebook provides the same errors:
http://developers.facebook.com/docs/reference/plugins/like
-
Hi, there is a way to include this module automaticaly (without loadposition key)in every post/content in joomla 1.5?
Thanks a lot
Pamela
-
Hi pamel_a,
you will need to use a plugin for that unless you want to create a module position inside your template that is visible on all pages / a certain category. For example the modules on the left hand of this post, "Categories" and "Most Popular" are visible on all pages of the blog category.
-
Hi BC,
I think it depends what the parameters are. I took as an example a page with standard un SEO Joomla URLS:
http://www.ihop.com/index.php?option=com_content&task=view&id=20&Itemi d=5
and I plugged it into a custom button here:
http://www.vergegraphics.com/demo
and it works without problems. If you send me a link I can take a look at what the problem might e and if any pf the query parameters are causing a conflict with facebook.
-
i found the problem with the error i think. i noticed that the facebook publisher also has problems reading my pages, so i started narrowing down what caused that. it seems to by in the joomla menu. when it has span tags with just a space inside, facebook chokes on it.
e.g. on a test page, if i change
Map
to
Map
the problem is gone. (i hope the html tags show in this comment)
-
Hi Jacob,
you can edit the menu in the mod_mainmenu module. However, I would not recommend that unless you know what you are doing. The menu may just be one reason it is not working, others seem to include using certain SEF addons. Also not all Joomla menu types are affected else, the module would not work on this page for example. So first yu should look at your source code and see if any menus exhibit that problem before trying to fix it. Next if it is a problem I would turn off the menu point in the backend.
-
Does anybody know how I can change the verb "like"? I am running a multilingual website with joomfish. For French I'd like it to say "aime" or something like that. thanks,
David
-
Hi David,
I have seen on websites that have buttons in different languages that the button is passing a &local variable as part of the URL. If you feel comfortable you can just edit the template file in the module to add it yourself. Otherwise I have noted it down for the next release!
-
First of all, thanks for all your work on this awesome module. I am getting the could not be reached error too. Thanks to playak for taking the time to find the solution.
I am pretty new to all this and my question is where do I look to find the spaces that need to be removed? Thanks in advance for your help.
-
Hi,
in my website don't works perfectly.
If a person click on "I like" don't appears to others.
Look here for example:
http://www.dimensionepoker.com/principianti/primi-passi/siti-poker-onl ine-gratis-dove-giocare-senza-soldi.html
Two persons have clicked on "I like" but nobody appears...
Maybe is my Seo component, sf404sef, but I'm not sure...
Thank you.
-
Hi Roberto,
do you use any SEF extensions?
When I look at your code the URL it is sending to facebook is:
http://www.dimensionepoker.com/index.php?option=com_content&Itemid=112 &id=73〈=it&view=article
Facebook compares that URL to the current page URL and if they don't match, it won't show the number properly
-
It works just fine, but i would like to included it in my content rather then everywhere on the site, how can I do that?? pls reply
-
Hi Aslam,
to include it in all content, you would need a plugin. If you want you can create a module position inside your template that is visible on all pages / a certain category. For example the modules on the left hand of this post, "Categories" and "Most Popular" are visible on all pages of the blog category.
-
I have the iframe version working on my site. I tried out the XFBML version and it displayed fine, but the comment box gets clipped. I can see the first few lines of pixels where its trying to display, but that's it. I've put the fb:like button in a table to get it to line up with other buttons and I've also tried it in div's instead - but nothing seems to help. Is anyone else seeing this issue?
-
Max, I do not have any SEO mods on my site, only the defult Joomla SEO Friendly option.
I also do not have any other Facebook functions on my site. I do have a link to my FB page, but it is just a graphic with a hyperlink.
www.wvcbas.com is my site
-
OK, I resolved the spans in the menu issue on my site. Had to make the change in 2 places
in my templates/templatename/html/mod_mainmenu/default.php.
Line 33&35...removed the space. Also had to change the space in the span "l" and "r" in functions.php in the template root folder.
NOTE: removing the space did not work I had to put in ' '
$lspan = & $liFirstChild->addChild('span', array('class' => 'l'));
$lspan->setData(' ');
$rspan = & $liFirstChild->addChild('span', array('class' => 'r'));
$rspan->setData(' ');
I know the code will be lost here. If its too much diversion for Mzx to put up I will put it up on my blog. Let me know Max. Hope it saves some other poor soul.
-
Hi Max,
yes, I'm using a SEF extention, sh404sef.
There is any solution?
Thank you again.
-
Awesome work. Thanks very much. We wanted the new Facebook Like button for our Joomla install, and it only took me a few minutes to add with your module.
-
Hi,
Can you explain please how to edit the template file if I want to translate the "like" word?
I didn't find any place with English words that I can change.
Thanks! Great module!
-
Hi Roman,
take look at mod_vergefacebooklike.xml in the modules/mod_vergefacebooklike/
Starting on line 44 you can specify various verbs to be used. I am not sure if you can change them there or if you need to pass a "locale" variable as part of the iframe. To pass the additional parameter you will need to edit default.php in modules/mod_vergefacebooklike/tmpl/
-
Hey Guys,
I added your module onto my site. However, the font colour of the name is white, which renders it invisible. Is there any way to change that?
my site is http://vinyarb.com
Cheers
-
I hope the code is visible in comments.
I have managed to fix the "Page could not be reached" issue as other solutions did not work for me.
Edit the code in default.php to reflect the following changes:
1)
function CurrentPageURL()
{
$pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://www.yourdomain.com' : 'http://www.yourdomain.com';
$pageURL .= $_SERVER['PHP_SELF'];
return $pageURL;
}
2)replace
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
with
($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
worked like a charm on my site.
-
How do I adjust this so that it pulls the specific article instead of just the page. I'm trying to use it in a blog section and when you hit "Like" on one article it uses it for all of them.
-
I'm trying to use this in a blog section but it's going off of the whole page instead of specific articles so when someone hits like, they end up liking all articles on that page. How can I call them individually like the tweetmeme service?
-
you will need to use a plugin for that unless you want to create a module position inside your template that is visible on all pages / a certain category. For example the modules on the left hand of this post, "Categories" and "Most Popular" are visible on all pages of the blog category.
-
Hi Kristofer,
this means that the server Joomla is running on does not seem to provide the $_SERVER variable and thus an incomparability between the module and your server. To try and fix it you can open default.php, delete lines 19-22 and replace the following line:
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
with
($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
-
thanks Max Neuvians, your tips really work and help me out...
-
hi guys,
Thanks very much for this module. Awesome work
i use it on
joomla site with no SEO option, no other facebook plugin = WORKS
(all urls of www.fidasleccese.it
i use it on
joomla site with SEO native option on, with facebook plugin Like Box = WORKS
(just one url to test
http://www.hotelkoine.it/it/lecce-otranto-ed-il-salento/gallipoli-la-c itta-bella )
so, thanks to share this module
Tommaso
from Italy
joomla site with SEO native option on = WORKS
-
Hi Kristofer,
it seems like the URL is not being discovered correctly. The page that is being sent to facebook is:
http://www.ssu.se/index.php
for every instance of the button on the site. Certain Joomla configurations seem to not be returning the URL correctly. Assuming that you are the same Kristofer from above and are using the JURI::Current() method. It might be that JURI::Current() is having the same problems as our CurrentPageURL() function in determining the URL. Are you using a windows server by any chance?
-
What am I doing wrong?
"Fatal error: Cannot redeclare currentpageurl() (previously declared in /home/goprojec/public_html/swedishgolfonline.com/modules/mod_vergeface booklike/tmpl/default.php:19) in /home/goprojec/public_html/swedishgolfonline.com/modules/mod_vergeface booklike/tmpl/default.php on line 22"
-
Hi GeneOberto,
the problem arises when you use two copies of the module on the same page or another component/module/plugin in Joomla is declaring the same function somewhere else. To change this, either only load the module once per page, or change the name of the name of the function in two places.
Change
function CurrentPageURL()
to
function CurrentPageURLFBLike()
and
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
to
($params->get('autourl') == 'yes' ? $url = CurrentPageURLFBLike() : $url = $params->get('url'));
in default.php inside the tmpl directory of the module directory in Joomla
-
Hey,
is it possible to place the link in each article? I have a Blog on my Joomla website and i want to able visitors to share an individual Blog post with their friends on facebook.
Im still a bit new tot Joomla so i don't have much technical knowledge.
thanks in advance!
-
Hi Zed,
thanks for the kind words. Unfortunately we have not had the time to take a look at this yet more than just throwing something basic, and basically underwhelming, together. There is a lot of cool stuff we would like to do with the open graph protocol. I promise you that we will do it, just we don't know when.
-
Hi,
This is an Great module, working well. But when i liked an article it posted only on my wall not my friends. What's Wrong?
-
Hi Ramesh,
I think the intended functionality is only to post to your wall and that people would see that when they are looking at your profile. I don't think it is supposed to post to your activity wall, although I may be wrong. In any case this would be something that facebook has control over. Thanks for your support though!
-
Hi Max,
it means that your installation of php is not providing the data array necessary to read out your url. I believe certain windows servers and very secure set ups will not provide this information.
http://www.php.net/manual/en/reserved.variables.server.php
You can try and use the JURI::Current() method instead by commenting out the whole CurrentPageURL() function and replacing
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
with
($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
-
I've notice if you have more than one instance of this on page you get php error even if its two different modules.
-
Hi Mooney101,
yes there is a problem with using the module multiple times on one page.
You can try and use the JURI::Current() method instead by commenting out the whole CurrentPageURL() function and replacing
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
with
($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
in default.php under the tmpl directory. The most common php error people are getting is that it redeclares CurrentPageURL multiple times.
Also the new plugin we are releasing soon will do away with the need for multiple modules.
-
any chance you could change the php short tags to the normal in the next release. I don't have them enabled by default on my server and it threw me for a loop to see the iframe pulling in the full facebook page, rather than the like iframe.
Otherwise i love the plugin. simple and effective.
-
I agree. Never assume everybody has short_open_tag enabled in their php configurations.
Otherwise. Great job with the module :)
-
Hi C.Eich,
that is a really good point. We run most of our software on servers we own or were built under our specifications, so I have never even though about differing server configurations. It's a really valid concern! Thank you very much for pointing that out. I will include this in the upcoming open graph componenent/plugin we are working on. Thanks for your support!
-
hi guys,
very good module.
I use it on 3 sites
Thomas
-
Works like a charme!
I could wish for a button Ilike this... can you make that?
Great work!
-
Thanks Max Neuvians,
Your tips to solve the undefined index problem in line 19 really help me too...
Reagrds,
Pierre
-
I notice when you like "use to be become a fan" a business facebook page the information is droped into the news part of you personal profile.
Does the like button on the joomla website page add the new articles for that page on that persons profile just like facebook?
-
Max, when do you finish the pluggin to button like?
thanks in advance we are waiting it, and congratulations for your work
salutations from barcelona (spain)
-
Hi there - nice east to use module. Seems to be working pefectly with me with sh404sef, which surprised me after reading the previous comments.
My question is about position - i have reduced the gap below the button, but I think i need a small gap above it. On this page for example http://www.mymusictheory.com/j/grade1/lessons/18-foreign-terms.html it looks like the button is attached to the google adsense box. How can i add some padding to make a gap at the top?
-
Hi Vic,
the like button is enclosed by a div with class "vergefacebooklike", which you can address in your CSS file with the following padding adjustments:
div.vergefacebooklike {padding-top: 5px;}
Just add the above line into your CSS file in your template and you should be good.
-
Hi there,
Love the module for it's simplicity. But I've run into a glitch, when clicking on the button a pop up window loads and then goes back to the original page and then reloads the pop up again continuously. Any idea what could be causing this?
Thank you!
-Nancy
-
I don't see this solution here, but I was having the problem with the URL error even though my url was valid. It was easily fixed without messing with span spaces, etc by just making sure my page had the required og meta tags. Listed http://developers.facebook.com/docs/reference/plugins/like
I have the meta tags dynamically generated using setMetaData
-
ugh ok nevermind, it seems to work about 50% of the time... now.
-
Hi Jeremy,
We have been working with OG specs for a while. If you look in our page source they are defined for most pages. It is really interesting that they seemed to have caused the problem. Our initial assessment was that is was a problem with the Facebook parser. Do you have the span spaces on your site template? They seem to have fixed all such problems as far as we know.
-
I've installed the module, but what now, I have a module showing on my site with a like button, but how do I get it to show o articles and how do I link it to my facebook?
-
Hi Bobo,
most likely your server does not support the php $SERVEr variable. This is ok. If you would like to remove the error message, as it is only a notice and not that important, please add:
error_reporting = E_ALL & ~E_NOTICE
to the top of this file:
/modules/mod_vergeface booklike/tmpl/default.php
-
i got this error message:
Notice: Undefined index: HTTPS in /home/............/modules/mod_vergefacebooklike/tmpl/default.php on line 19
-
This might help as well... had two on a category/blog list, created error ;-)
if (!function_exists('CurrentPageURL')) {
function CurrentPageURL() {
$pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT& #34;].$_SERVER["REQUEST_URI"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
return $pageURL;
}
}
-
ho usato il pulsante sul mio sito http://www.tecmania.it/
fantastico...
-
Really nice mod! But I've a problem. I click on button and type my facebook user and password on popup page. That popup continues to open and close repeatedly. I have to cancel my browser cache to stop it. I use firefox 3.6.11. Is it a problem of my browser?
Thanks.
-
This is my beta website where you can try it.
Thanks!
-
Hi Luca,
I had no problem using the like button on your website. That would indicate either something in your browser, like a bad cookie, or something else. I would be cautious of any trojans that might be trying to capturing information on your facebook account if it is behaving irregular. Can you use the like button on other pages?
-
This looks a great module
I cannot find the download button - the download button on the Joomla extensions website directs me to this blog page.
Neil
-
Hi Max!
Nice job, I was just wondering whether the plugin is out yet or not?
I have seen a couple of big websites using Verge like button, they can't be doing so using the {loadposition}, it must be through plugin only.
I would love to implement Like Button on my website (www.filmitadka.in) any idea how can I do so?
-
Max -
ii installed the latest version and the problem i am having is that it is not displaying anything for the FBML option. however, iframe option works fine.
and for FBML i get.
is there anything additional i need to do rather than just enabling the FBML button.
thanks
-
Hi - I have to correct my post from before: The URL is given correctly - just that FB doesn´t link back properly. I´m using the iframe-method and I´m not familliar with FB at all. Maybe you got a hint for me?
-
Hallo Nico,
ich habe das Module unter http://phase1.immodog24.info/index.php?option=com_content&view=frontpa ge getestet und hatte keine Probleme. Sowohl das anklicken und das zureuck linken von Facebook ging ohne Probleme.
Kannst du dein Problem vielleicht naeher beschreiben?
-
Hallo - Danke für das Feedback.
http://phase1.immodog24.info/index.php?option=com_content&view=frontpa ge
ist ja die Start- / Hauptseite, d.h. ohne weitere Parameter in der URL wird man dorthin umgeleitet.
Wir haben einige Anzeigen auf der Seite und hatten gehofft, direkt auf eine der Anzeigen zurückverlinken zu können. Probier mal irgendeine andere Seite aus dem Menü, Du kommst leider immer nur zurück auf die frontpage...
-
Hallo Nico,
ich glaube der Facebook parser ist leicht Kaputt, wenn er mit Joomla URLs konfrontiert ist. Das passiert immer mal wieder. Ich hab mal eine Anzeige getestet und das ging gut:
http://phase1.immodog24.info/index.php?option=com_chronocontact&chrono formname=suche_wohnung_ergebnisliste&plz_geb=2
aber
http://phase1.immodog24.info/index.php?option=com_chronocontact&Itemid =91
ging nicht. Dafür ging aber:
http://phase1.immodog24.info/index.php?option=com_chronocontact&Itemid =91&
mit einem & am Ende. Also würde ich vorschlagen einfach an jede URL noch ein & anzuhängen oder mit es mal mit SEO URLs zu versuchen. Schau mal hier: http://vergegraphics.com/demo
-Max
-
Hallo Max,
sorry für das späte feedback - aber ich hab´s ausprobiert mit dem '&' am Ende - funktioniert jetzt einwandfrei!
Vielen Dank nochmals für den Tipp - und weiterhin viel Erfolg mit Eurer Arbeit!!
Beste Grüße aus "Germany" - Nico
-
Hello,
Is there a dumb proof tutorial for this? It does not seem like it's just plug in play.. I have installed it, and activated for all the menus, yet the Like button is not showing anywhere. I know this is a very basic thing, but can someone tell me what to do right after installing the module?
-
Hi ! Module is ok, i just wonder how is possible to show faces in multiple lines, on my page it just show the first 6 even if i have more likes.
Thanks !
-
Yes was the first thing, i've did 200X200 and didn't changed, also 200 with and no specification of heigh had no results.
-
Hi Dario,
it seems according to here:
http://developers.facebook.com/docs/reference/plugins/like
if you use a default button layout with photos enabled it has a maximum height of 80 px. I think only 6 can fit in there. There is something like a picture wall you can get from facebook. If you can find an example of a working like button with more than 6 picture then I can try and figure out how it is done.
Thanks
Max
-
Just perfect :
Width 500
Height 60
order breadcrumbs
and thats it !!!
two thumbs up !!!
http://hessegate.com/
-
And I forgot,...I also changed
$pageURL = $_SERVER['HTTPS'] == ‘on’ ? ‘https://www.yourdomain.com’ : ‘http://www.yourdomain.com’;
The Module is working, but I can´t see any notifications in the "News" section, just on the Facebook "Wall" of the people who clicked the button.
-
Hi and thanks for the addon.
I have a problem that I couldn't find a solution from the comments.
I have installed the addon in two sites. One test site I have in GoDaddy and one site for an actual client. The addon works fine in the test site but in the clients site I get a box with the facebook logo and the legend "Go to facebook.com". (check http://www.expansionconsulting.gr).
I tried figuring out from google chrome inspect element and I saw that when the addon is building the url in the client site it shows all the parameters of the addon instead.
""http://www.facebook.com/plugins/like.php?href=
&layout=
&show_faces=
&width=
&action=
&font=
&colorscheme=
&locale=""
can someone please help?
thanks in advance
George
-
Hi George
that is the correct structure for the facebook like button to be included in your iframe url. This is how facebook knows what type of button to display. Check out http://developers.facebook.com/docs/reference/plugins/like/ for more information. What might be happening is that the URL is not included in the href=variable. The reason might be that the server setup does not allow for the URL to be read out. Try playing with the following option:
f you look in the file itself there should be a commented out line:
//($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
remove the // infront of that and add // to this line:
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
-
Unfortunately just the second part of my message appeared on this board, but nevertheless, the module is working on my website now. Thanks a lot!
As I mentioned, if somebody clicks on the "Like" Button, there´s only a message that appears on the Facebook "Wall" of the people who clicked the button.
On the other side, if I click on the "Like" Button at the top of this page, the notification that I like "http://www.vergegraphics.com/" appears on the "News" section of my friends which is much more effective for viral social media marketing.
So, if you´re using the same module, there must be any difference in the code or the settings of the module.
Thanks in Advance,
Andreas
-
Hi Andreas,
I think the difference might be that we have an appid associated with the server in our source code:
window.addEvent("domready", function() {FB.init({appId: 124942250869153, status: true, cookie: true, xfbml: true});});
var JOSC_postCSS=2;
and are using the module in FBML mode. I imagine that Facebook might give pages with an App ID in the source a preference because you register with facebook. I am not 100% sure. I would check out the facebook documentation though.
efil
April 23, 2010 at 07:54 am
Thanks! Very useful module.
The problem is that it's not automatically discover the URL for the page, but the The site's primary address.