# Twittering with the Wolfram Language on the Raspberry Pi

**URL:** <https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939>\
**Category:** Ideas\
**Tags:** mathematica, external-interfaces, raspberry-pi\
**Created:** [November 21, 2013, 5:21pm UTC](https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939 "2013-11-21T17:21:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnoudb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/arnoudb/32/41177_2.png) [@arnoudb](https://community.wolfram.com/u/arnoudb)\
**Post date:** [November 21, 2013, 5:21pm UTC](https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939/1 "2013-11-21T17:21:31Z")

</div>

Newly included in the Wolfram Language is the ability to send “tweet” using the SendMessage function. Its syntax is straightforward:

```auto
SendMessage["Twitter", "A tweet from the Wolfram Language on the Raspberry Pi!"]

```

Evaluating this will bring up an authorization dialog (once) to allow the Wolfram Language to send tweets on your behalf:

 ![5-1-tweet_community.jpg](https://global.discourse-cdn.com/wolfram/original/3X/5/5/55dca7fd64ae79cb570d63ad65244d0a2c67aea8.jpeg)

Click on ‘Done’ after entering the access key and the tweet will appear in your twitter stream:

 ![5-2-tweet.PNG](https://global.discourse-cdn.com/wolfram/original/2X/4/4466488672641b2ca52465670c5db7fe5e9700bc.png)

---

<div class="post-metadata">

**Author:** ![stephen1](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@stephen1](https://community.wolfram.com/u/stephen1)\
**Post date:** [March 3, 2014, 8:11pm UTC](https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939/2 "2014-03-03T20:11:24Z")

</div>

Hi,

I have been trying to do this on my pi, but the request keeps failing with invalid access token. Do I need to request x\_auth access on Twitter?

---

<div class="post-metadata">

**Author:** ![ilya](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/ilya/32/13951_2.png) [@ilya](https://community.wolfram.com/u/ilya)\
**Post date:** [March 6, 2014, 8:20pm UTC](https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939/3 "2014-03-06T20:20:29Z")

</div>

This is possible from the command line version?

---

<div class="post-metadata">

**Author:** ![antoniociolino](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@antoniociolino](https://community.wolfram.com/u/antoniociolino)\
**Post date:** [March 12, 2014, 5:19pm UTC](https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939/4 "2014-03-12T17:19:49Z")

</div>

Not yet - SendMessage requires a front end to work.

---

<div class="post-metadata">

**Author:** ![martabar](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/martabar/32/29793_2.png) [@martabar](https://community.wolfram.com/u/martabar)\
**Post date:** [March 14, 2014, 12:29am UTC](https://community.wolfram.com/t/twittering-with-the-wolfram-language-on-the-raspberry-pi/939/5 "2014-03-14T00:29:29Z")

</div>

Will SenMessage work for Facebook too? I am getting an error for now…
