New Module: CGFBApp

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

New Module: CGFBApp

Post 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.
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.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: New Module: CGFBApp

Post by nicmare »

thank you! i like ;)

whats the main advantage of CGSmartImage ? can it do more than supersizer?
sturla69
Forum Members
Forum Members
Posts: 29
Joined: Fri Jan 19, 2007 9:24 am

Re: New Module: CGFBApp

Post 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!
velvet_grooves
Forum Members
Forum Members
Posts: 54
Joined: Mon Oct 18, 2010 1:33 am

Re: New Module: CGFBApp

Post 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]
User avatar
micahgodbolt
Forum Members
Forum Members
Posts: 149
Joined: Thu Jul 29, 2010 11:09 pm
Location: Portland, OR

Re: New Module: CGFBApp

Post 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.
DiH
Forum Members
Forum Members
Posts: 14
Joined: Thu Nov 11, 2010 12:30 pm

Re: New Module: CGFBApp

Post 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)"
Last edited by DiH on Thu Apr 07, 2011 6:33 pm, edited 1 time in total.
DiH
Forum Members
Forum Members
Posts: 14
Joined: Thu Nov 11, 2010 12:30 pm

Re: New Module: CGFBApp

Post 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');
Bigge

Re: New Module: CGFBApp

Post 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.
sithstemple
Forum Members
Forum Members
Posts: 18
Joined: Fri Mar 17, 2006 12:14 pm

Re: New Module: CGFBApp

Post 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?
DiH
Forum Members
Forum Members
Posts: 14
Joined: Thu Nov 11, 2010 12:30 pm

Re: New Module: CGFBApp

Post 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 ?
sithstemple
Forum Members
Forum Members
Posts: 18
Joined: Fri Mar 17, 2006 12:14 pm

Re: New Module: CGFBApp

Post 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.
velvet_grooves
Forum Members
Forum Members
Posts: 54
Joined: Mon Oct 18, 2010 1:33 am

Re: New Module: CGFBApp

Post 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.
netfied

Re: New Module: CGFBApp

Post 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?
User avatar
DADOCTOR
Forum Members
Forum Members
Posts: 51
Joined: Sat Apr 02, 2011 5:39 am
Location: Australia

Re: New Module: CGFBApp

Post 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?
User avatar
DADOCTOR
Forum Members
Forum Members
Posts: 51
Joined: Sat Apr 02, 2011 5:39 am
Location: Australia

Re: New Module: CGFBApp

Post 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
Post Reply

Return to “Modules/Add-Ons”