Use Arduino as a Facebook alert system
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Arduino Facebook Notifier (v.0.1.1)

The Arduino Facebook Notifier is a tool that make you intercat with Arduino and Facebook.

This repository contains the open source PHP that allows you to access Facebook from a PHP app and connect with your Arduino. Except as otherwise noted, the Arduino Facebook Notifier PHP is licensed under the Apache Licence, Version 2.0 (


Arduino Facebook Notifier allows you to get the basic information from your Facebook account.

In this first version, you can use your Arduino board to get notified of any new friend request, message or notification.

Demonstration video :


  1. Compile and upload the source code on your Arduino board.

  2. Put 3 LEDs on 3 different pins :

    • Friend requests: Pin8
    • Messages: Pin10
    • Notifications: Pin12


###TinkerProxy Configuration (Serial Communication Proxy):

You can configure the COMPort and other additional proxy settings of TinkerProxy in the file found in "tools/serialcom/serproxy.cfg".


	# Comm ports used

	# Default settings

	# Idle time out in seconds
	# Port 2 settings (ttyS1)

###Facebook Checker Configuration:

You may change the settings of the configuration file found in "script/Configuration.php".

####Change TinkerProxy Connection settings:

You specify the host and the port.

define('SERPROXY_HOST','localhost'); //Host of the 'serproxy' server
define('SERPROXY_PORT',5332); //Port of 'serproxy' server

####Facebook account 'Access_Token':

  1. Create a Facebook application (
  2. Edit the file "script/AccessTokenGetter.php" with your Facebook application ID and Facebook application secret
  3. Upload it to the Site URL you specified in your Facebook application settings ('localhost' is also allowed)
  4. Open it and generate the 'access_token'
  5. Place it in 'Configuration.php'

N.B: During the login a 'offline__access' permission is required so the access_token won't expire early (2 months TTL).

####Additional settings

  • 'CHECK' Options: You can disable or enable some of the options (FriendRequests, Notifications or Messages).

  • SleepTime: Delay between each call (5 seconds min). Recommendation: If the SleepTime is higher than 20s, you may not exceed the Facebook API limit.


####Arduino Facebook Notifier (ArduinoFBNotifier)

This batch file will start 'TinkerProxy' and the execution of the PHP Script.

####Facebook access token debugger (AccessTokenDebugger)

With this tools you can debug your Facebook access__token to know if it's still valid, when it expires and other related information.


The tools that have been used on this project :


For us to accept contributions you will have to first have signed the Contributor License Agreement.

When commiting, keep all lines to less than 80 characters, and try to follow the existing style.

Before creating a pull request, squash your commits into a single commit.

Add the comments where needed, and provide ample explanation in the commit message.

Report Issues/Bugs