Wednesday, May 18, 2011

My Encounter with TwitterOAuthPlugin for CakePHP

Plugin By: Neril Crookes
This is one of the finest (the only one I know for cakephp) plugins of its kind.

Common mistakes that consumed most of my time:
  1. oauth_token_secret length is not fixed, I took a length of 42 in my databases, so I had the wrong secret and therefore I was having Invalid Signature error.
    Took me a hell lot of time to figure out
  2. php if-else statements used in templates:
    The mistake I was making was like this-

    <?php if(condition) : <some php code> ?>
    while it should have been
    <?php if(condition) : ?> <?php <some php code> ?>




    .....

    Will continue to post such non-traditional errors :)
    .....
Will continue to post such non-traditional errors :)