[extension] faceplugs

There seems to be some reoccuring problems with the app_id … I will be updating the extension to use a better system soon.

Thanks for your replies. My params are just a normal array, and I never had problems with it, so I guess they are in good shape :stuck_out_tongue: … the only option I have to add to the params is “fbAppId”, is this correct? Or what is about the ‘fbRootSet’?

@Gustavo: I changed the line as you said, but it just pops up the next error:


CException


Objekt-Konfiguration muss ein Array sein, das ein "class"-Element beinhaltet.


C:\xampp\htdocs\startregie\protected\extensions\faceplugs\EFaceplugsBase.php(247)


235         'qu_PE',

236         'ay_BO',

237         'se_NO',

238         'ps_AF',

239         'tl_ST',

240     );

241 

242     public function init()

243     {

244         if (property_exists($this, 'href') && $this->href === null) {

245             $this->href = $this->url;

246         }

247         if (!$this->app_id && isset(Yii::app()->params->fbAppId)) {

248             $this->app_id = Yii::app()->params->fbAppId;

249         }

250         if ($this->url) {

251             $this->registerOpenGraph('url', $this->url);

252         }

253         if ($this->app_id) {

254             $this->registerOpenGraph('app_id', $this->app_id);

255         }

256 

257         foreach ($this->og as $type => $value) {

258             $this->registerOpenGraph($type, $value);

259         }




after trying to change this as well it says:




CException


Objekt-Konfiguration muss ein Array sein, das ein "class"-Element beinhaltet.


C:\xampp\htdocs\startregie\protected\extensions\faceplugs\EFaceplugsBase.php(247)


235         'qu_PE',

236         'ay_BO',

237         'se_NO',

238         'ps_AF',

239         'tl_ST',

240     );

241 

242     public function init()

243     {

244         if (property_exists($this, 'href') && $this->href === null) {

245             $this->href = $this->url;

246         }

247         if (!$this->app_id && isset(Yii::app()->params['fbAppId'])) {

248             $this->app_id = Yii::app()->params['fbAppId'];

249         }

250         if ($this->url) {

251             $this->registerOpenGraph('url', $this->url);

252         }

253         if ($this->app_id) {

254             $this->registerOpenGraph('app_id', $this->app_id);

255         }

256 

257         foreach ($this->og as $type => $value) {

258             $this->registerOpenGraph($type, $value);

259         }

So it always says something like: The object configuration must be an array containing a "class"-element.

Any other ideas? :wink:

here’s some part of my params:

main.php:


'params' => require(dirname(__FILE__) . '/params.php'),

params.php:


// this contains the application parameters that can be maintained via GUI

return array(

    // this is displayed in the header section

    'title' => 'Test',

    // this is used in error pages

    'adminEmail' => 'xxx@xx.xx',

    // number of posts displayed per page

    'postsPerPage' => 10,

    // maximum number of comments that can be displayed in recent comments portlet

    'recentCommentCount' => 10,

    // maximum number of tags that can be displayed in tag cloud portlet

    'tagCloudCount' => 20,

    // whether post comments need to be approved before published

    'commentNeedApproval' => true,

    // the copyright information displayed in the footer section

    'copyrightInfo' => 'Copyright © 2009 by Yii.',

    // Facebook App ID

    'fbAppId' => 'xxxxxxxxxxxxxxx',

);



Thanks a lot so far!

Try changing this to :




    // Facebook App ID

    'app_id' => 'xxxxxxxxxxxxxxx',



I tried this, but still the same error like above. Weird stuff … is it just me, who has this bug? … I’m really gettin nervous :stuck_out_tongue:

Hm not sure … but I don’t think keeping all parameters for different things like that is a good idea. Why not use the Yii config file ?

Anyway I’m looking into another way of setting the app_id as there have been problems with it in the past, but I’m not sure it will help your particular (non standard) usage case.

Can you please briefly describe how to use this extension? I am not sure about where to put all those files…

Faceplugs … giggles :lol:

Can you extend CComponent to have this stuff.

I got the same problem but … I am already logged in on facebook. Try to logout your account and then retry this extension! I’d tried to use firebug and I see a javascript error on javascript console:

Guys I am using the faceplugs extension. I get the like button to display and when the user clicks on the like button everything works fine. However,I don’t see any notification that I liked something on my facebook profile. Is this normal?

If not what do I need to do so that I also see a notification on facebook.com

One important thing. My like button is linked to every new post in my blog. For example if I write a blog post about Yii. This post would have its individual like button.

faceplugs using to perform the test on me generate error, this is generated: Errors That Must Be Fixed

Circular Path Redirect: Circular redirect path detected (see ‘Redirect Path’ section for details).