Here's the code:

$params = array('user_id'=> "16685316");
        $oauth = new TwitterOAuth(
                        TWITTER_OAUTH_CONSUMER_KEY,
                        TWITTER_OAUTH_SECRET_KEY,
                        $user->getOauthToken(),
                        $user->getOauthTokenSecret()
                        );
                Log::debug("params", $params);
                $result = $oauth->post('friendships/destroy', $params);
                Log::debug("result", $result);
                if (isset($result->error)) {
                        return false;
                }
                return true;

Problem is all requests to both friendships/destroy and friendships/
create fail with the following:


stdClass Object
(
    [request] => /1/friendships/destroy.json
    [error] => Could not authenticate you.
)



HOWEVER, using the exact same user object in memory I can successfully
get my personal timeline. ??

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to