Twitter lib problems

I’m trying to get my Arduino+official Ethernetshield tweeting. I ended up (after a whole afternoon) with the twitter lib from the playground on arduino-0018 as 19 doesn’t seem to work at all. I always get the Serial-message “failed : code 403”. Here is my code:

#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <EthernetDNS.h>
#include <Twitter.h>

byte mac[] = { 0xFE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

// Your Token to Tweet (get it from
Twitter twitter("5xxxxxxxxxxxxxxxxxxxxxe");

// Message to post
char msg[] = "starting...";

void setup()
  Serial.println("connecting ...");
  if ( {
    int status = twitter.wait();
    if (status == 200) {
    } else {
      Serial.print("failed : code ");
  } else {
    Serial.println("connection failed.");

void loop()
{"regular tweet test");
   Serial.println("tweet to check regularity posted!");


When I power up the board, it tweets “starting…” and only once “regular tweet test”, but it prints Serial regularly the “tweet to check regularity posted!” message.

Hope you can help me. I originally wanted to tweet the temperature outdoors regularly. Twitter is therefor nice as I get the data with the time and date easily like that.

403 is authentication required. Maybe the hash of your password is wrong?

Have you: * Checked that your arduino can get on the internet? Run the ethernet sample sketch that grabs data from a website to test it. * Gone to and got yourself a token, and used that in your code (I'm presuming you have, you seem to have obscured it in your post) * Checked that the messages aren't being posted on twitter

I had already checked all this. Found out that 403 means forbidden at twitter, too. But why is it forbidden?

This library does not work under 0021


I'm having this same problem, was it ever solved?



oh, i have same prob too. i don't know what should i do. please any idea for that?

Nice Ties