New Module: CGFBApp
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
New Module: CGFBApp
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: New Module: CGFBApp
thank you! i like 
whats the main advantage of CGSmartImage ? can it do more than supersizer?

whats the main advantage of CGSmartImage ? can it do more than supersizer?
Re: New Module: CGFBApp
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!
-
- Forum Members
- Posts: 54
- Joined: Mon Oct 18, 2010 1:33 am
Re: New Module: CGFBApp
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]
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]
- micahgodbolt
- Forum Members
- Posts: 149
- Joined: Thu Jul 29, 2010 11:09 pm
- Location: Portland, OR
Re: New Module: CGFBApp
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
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):
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)"
Last edited by DiH on Thu Apr 07, 2011 6:33 pm, edited 1 time in total.
Re: New Module: CGFBApp
I know it might not be relevant but class.cgfb_og_smarty.php line 152 is:
whereas it should be:
Code: Select all
$data['og:site_name'] = get_site_preference('[b]sitenae[/b]','CMSMS Site');
Code: Select all
$data['og:site_name'] = get_site_preference('[b]sitename[/b]','CMSMS Site');
Re: New Module: CGFBApp
You have to change the language and Country codes understurla69 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!
"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>
Code: Select all
<__script__ type="text/javascript" src="http://connect.facebook.net/nb_NO/all.js"></__script>
-
- Forum Members
- Posts: 18
- Joined: Fri Mar 17, 2006 12:14 pm
Re: New Module: CGFBApp
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:
Anyone have any ideas on how to get this to work?
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}
Re: New Module: CGFBApp
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 ?
-
- Forum Members
- Posts: 18
- Joined: Fri Mar 17, 2006 12:14 pm
Re: New Module: CGFBApp
Actually, I checked the help section of the module, and there is no 'href' parameter for the comments part.
So I changed it to:
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.
So I changed it to:
Code: Select all
{cgfb_init}{cgfb_comments uniqueid=$entry->canonical}
-
- Forum Members
- Posts: 54
- Joined: Mon Oct 18, 2010 1:33 am
Re: New Module: CGFBApp
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.
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
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
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?
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
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
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