loading

I will show you how you can easily build a device that will notify you when you have a Facebook Notification using Intel Galileo.

Step 1: Initializing Input and Output Ports

You can interact with the Galileo's pins using the Linux sys interface. You can set pin direction (output or input) and value (high or low) using simple shell commands. More details here.
We can do anything we like with Galileo's pins by writing or reading from files so almost any programming language can be used for this task. We said that we need a function to initialize the pins.

Step 2: Set the Led on and Off

Setting a value on a pin is as simple as writing to a file:

Step 3: Asking Facebook for New Notifications

For this, we will use Facebook Graph. Click here.
You will need to generate an Access Token. Click on “Get Access Token”, then “Extended Permissions” and select “manage_notification”. Using this access token you can make request at URL: https://graph.facebook.com/me/notifications?acces...

This will return you some information in JSON format. The only field that we are interested in is “summary” at the end of the JSON. When you have a new unread notification, “summary” length will not be zero.

Step 4: Finally

Now you have your own Notifier and you will never miss a Facebook Notification again.
You can go further with this project and add a Buzzer that will make noise when you receive a new notification and an LCD that will show the latest notification. Thank you and good luck!

<p>This is very useful. Thank you for sharing!</p>

About This Instructable

339views

4favorites

License:

More by DEROMOK:Facebook Notifier using Intel Galileo 
Add instructable to: