Facebook API – Login with the JavaScript SDK

I´ve seen a lot of weird coding happening around Login with the Facebook JavaScript SDK, so here is one good solution with explanation: HTML (just a login button and a div for the response) Facebook Login JavaScript function getUserData() { FB.api(‘/me’, function(response) { document.getElementById(‘response’).innerHTML = ‘Hello ‘ + response.name; }); } window.fbAsyncInit = function() { […]

Read more

Facebook PHP SDK 4.0 Tutorial

Facebook changed their PHP SDK a lot with version 4.0, so i thought you could use a tiny tutorial how to authorize users and how to use the API with the new version. Feel free to comment about any errors or suggestions. Download/Install/Prerequisites Obviously, the first thing to do is to download the PHP SDK: […]

Read more

Extended Page Access Tokens with CURL

This is a follow up to my article about Access Tokens for Facebook. It is quite easy to generate an Extended Page Access Token with the PHP SDK, but being a big fan of the Facebook JavaScript SDK i try to avoid using the PHP SDK. So this is how you create an Extended Page […]

Read more

Raspberry Pi for N00bs – Cron Jobs

I´ve explained the basics of Scripting with Python in my former article, but what if you want to run a script periodically on your Raspberry Pi? Well, there is this crazy little thing called “Cron Job”. It is quite easy to set them up on your Raspberry, this is how: Basic Cron Jobs cd /etc/cron.d […]

Read more

Raspberry Pi for N00bs – Scripting with Python

Although I prefer other languages, here´s a small tutorial to get you started with Python on your Raspberry Pi. The latest Rasbpian distribution already comes with Python so you don´t even need to install anything else. Actually, i even found 2 versions on my Raspberry, 2.7.3 when i just run “python” in the terminal and […]

Read more

Raspberry Pi for N00bs – Network Share with Samba

Before getting serious with a headless Raspberry, it´s a good idea to set up a folder to be uses as network share in Windows. That is, if you are a Windows user. If you are a Linux user, i expect that you know how to reach your Raspberry. In that case, you would not even […]

Read more

Raspberry Pi for N00bs – WLAN

So you already know how to connect to the LAN, but sometimes the Router is not right next to the Raspberry Pi and you need a wireless connection. Not every WLAN stick is compatible, check the compatibility list before you buy one. I am using a TP-LINK 150Mbps Nano, no additional driver needed and you […]

Read more

Raspberry Pi for N00bs – Firmware Update

Every now and then, it is a good idea to update the Firmware of your Raspberry Pi. There is a very nice tool out there to make that easy for you: https://github.com/Hexxeh/rpi-update It is quite easy to install the tool, first you have to install GIT: sudo apt-get install git-core On Raspbian, the best way […]

Read more

Raspberry Pi For N00bs – Linux Basics

After installing a Linux distribution as explained in my article “Raspberry Pi for n00bs – Installation“, it is time to change some basic settings. This article covers everything you need to know to get your system ready to use. I only run my Raspberries “headless”, without a monitor/TV. Saves an expensive gold-plated HDMI cable and […]

Read more

Raspberry Pi for N00bs – Installation

A complete PC for only 30 Euros, super-silent without active cooling, the operating system on SD card. That is the Raspberry Pi Shopping List …ok, to get it up and running, you will need a few more Euros, here´s the minimal configuration: Raspberry Pi – Type B (25-35 Euros) Ethernet cable (1-2 Euros) Power supply with […]

Read more