Lost Days Trying To Integrate Twitter

Hi all,

I’ve been trying to integrate my yii website with twitter using the extensions with no success.

One extension says "CPSTwitterApi"."apiSecretKey" is not defined.

Others do not explain the pre-intallation needs clearly.

I think twitter is very important for a website

What are you using to integrate with yii?

Did you define the value of apiSecretKey while configuring?




//  Twitter API

'twitter' => array(

    'class' => 'app.components.twitter.CPSTwitterApi',

    'apiKey' => 'your_consumer_key',

    'apiSecretKey' => 'your_consumer_secret',

    'apiBaseUrl' => 'http://twitter.com',

    'callbackUrl' => 'your_callback_url',

    'format' => 'array',

),




yes, I did.

I get the error in Spanish, don’t know how is shown in english. but anyway, the error is about the class property not the value. I mean, the class does not have a property called apiSecretKey, if I comment that line then I get the same error but with the property ‘format’

here dubayou says he had to add ‘apiSecretKey’ => ‘string:’,

to CPSApiBehavior.php to get the secret key to comein from config/main.php

How can I do that? open CPSApiBehavior.php and then, what?

PD: What Im sure is that there is no apiSecretKey declaration in the extension classes