Page 1 of 2
New Module: CGFBApp
Posted: Mon Jan 31, 2011 11:56 pm
by calguy1000
I just released the very first version of a new module to make it easier to integrate your site with Facebook. It's called CGFBApp and you can find it here:
http://dev.cmsmadesimple.org/projects/cgfbapp
it supports:
- Login With Facebook (note: This does NOT integrate with FEU).
- Social Plugins (Like, Comments)
- Querying the Facebook Database via the Graph or FQL language
- Posting Wall Posts and Status Posts
- Storing data in the database for each Facebook User that adds your site (in testing).
Enjoy.
-- Coming Soon --
CGSmartImage - For simple image processing, caching, and embedding into HTML and stylesheets.
Re: New Module: CGFBApp
Posted: Tue Feb 01, 2011 9:19 am
by nicmare
thank you! i like
whats the main advantage of CGSmartImage ? can it do more than supersizer?
Re: New Module: CGFBApp
Posted: Fri Feb 04, 2011 9:08 am
by sturla69
Is it possible to set language on the module? I would like the Like button and text to have norwegian text. Thank you for at great module!
Re: New Module: CGFBApp
Posted: Thu Feb 24, 2011 2:50 pm
by velvet_grooves
Hi,
I've just put {cgfb_like} in my front page template, but nothing comes up. Any idea what might be wrong? The module is obviously installed and activated...
http://www.clubretail.co.uk [test site]
Re: New Module: CGFBApp
Posted: Mon Mar 21, 2011 10:08 pm
by micahgodbolt
Yup, I had the same problem of the like button not showing up. Adding {cgfb_init} did the trick. The confusing part is that the help section reads:
The simplest way to add facebook integration into your site is just to add {cgfb_like} into the page template of your site. Now any page that uses this page template will have a facebook "Like" button attached to it. You do not need to create a facebook application, or even to call {cgfb_init} to use this function.
Re: New Module: CGFBApp
Posted: Thu Apr 07, 2011 5:44 pm
by DiH
Hey
I actually want to display "Like" button next to every News article in my summary list. So, on one page I have 5 articles, each one of them with Like button. They do work and add a proper link, but on Facebook wall the title of the page and decription come from the page that all news are displayed, not from each news item.
I tried putting {cgfb_init} and {cgfg_meta} in head section of the template, and then in both - news summary template and detail template I added:
{cgfb_og_title title=$entry->title}
{cgfb_og_desc desc=$entry->content}
{cgfb_like href=$entry->link layout="button_count"}
But it still adds the page with wrong title
and description, although with a proper image (changing image was enough to be done in detail template).
What am I doing wrong? Thanks in advance.
Edit: I noticed that from time to time (probably due to browser caching) I see this error (changing to {cgfg_og_meta} does not help):
string(119) "Smarty error: [in tpl_head:24 line 5]: syntax error: unrecognized tag 'cgfg_meta' (Smarty_Compiler.class.php, line 590)"
Re: New Module: CGFBApp
Posted: Thu Apr 07, 2011 6:30 pm
by DiH
I know it might not be relevant but class.cgfb_og_smarty.php line 152 is:
Code: Select all
$data['og:site_name'] = get_site_preference('[b]sitenae[/b]','CMSMS Site');
whereas it should be:
Code: Select all
$data['og:site_name'] = get_site_preference('[b]sitename[/b]','CMSMS Site');
Re: New Module: CGFBApp
Posted: Thu Apr 07, 2011 7:40 pm
by Bigge
sturla69 wrote:Is it possible to set language on the module? I would like the Like button and text to have norwegian text. Thank you for at great module!
You have to change the language and Country codes under
"Facebook Synchronous Initialization" in the module admin area.
Original:
Code: Select all
<__script__ type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></__script>
Change to:
Code: Select all
<__script__ type="text/javascript" src="http://connect.facebook.net/nb_NO/all.js"></__script>
for Bokmål and
nn_NO for Nynorsk.
Re: New Module: CGFBApp
Posted: Sat Apr 09, 2011 1:32 pm
by sithstemple
Having a slight problem with this module.
Got the Like button to work perfectly on the News Detail page, but whenever I try to insert the Comments plugin, it comes up on the page saying that the href parameter is needed.
This is what I have in the News Detail template:
Code: Select all
{cgfb_init}{cgfb_comments href=$entry->content}
Anyone have any ideas on how to get this to work?
Re: New Module: CGFBApp
Posted: Sat Apr 09, 2011 7:14 pm
by DiH
The attribute name is href, which would make me think that this should be URL, not content of the $entry. Have you tried $entry->link or $entry->moreurl ?
Re: New Module: CGFBApp
Posted: Sat Apr 09, 2011 7:18 pm
by sithstemple
Actually, I checked the help section of the module, and there is no 'href' parameter for the comments part.
So I changed it to:
Code: Select all
{cgfb_init}{cgfb_comments uniqueid=$entry->canonical}
I still get the message the the plugin needs an href parameter. In checking the source code, the xid was certainly using the correct url, but there was no href parameter to call.
Re: New Module: CGFBApp
Posted: Fri Apr 22, 2011 1:09 pm
by velvet_grooves
I'm still stuck with this. I've also tried $entry->url/link detail_url and whatever else. It either "likes" the product-detail page or if I assign the product detail pages to nowt, it "likes" the site root url.
Here's the site: <removed>
Any idea how I get the FB to work? I can assign the product details page to a specific page with a template, but it won't save the url link to my facebook....
EDIT: Fixed.
Re: New Module: CGFBApp
Posted: Mon Aug 29, 2011 7:16 pm
by netfied
I want facebook like button to link to facebook page other than like on individual pages and display people who likes the page any idea on how to implement this?
Re: New Module: CGFBApp
Posted: Sat Sep 17, 2011 10:58 pm
by DADOCTOR
Hello,
I have the like button working well, I want it at the top of the page, which is how I have it located at the moment.
I have added the comments to the end of the page but it also displays the like button above it.
Is the like button displayed above the comments when using the {cgfb_init}{cgfb_comments} tags?
How can I block this from my home page? any tags?
Re: New Module: CGFBApp
Posted: Sun Oct 02, 2011 1:13 am
by DADOCTOR
Thank you for your help,
I have been tying to implement this code so the FB comments display will not be displayed on my home page
I really need some help if someone can help
{if $content_id != $page_id}
{cgfb_init}{cgfb_comments}
{/if}
$content_id where do I find content id?
and
page_id where can I find page id?
here is a link to where I am trying to remove the comments display
http://www.crimecasefiles.com/home
any help would be great, its one of the last things that I have to do before I open the site.
Regards
Ryan