Facebook Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Facebook Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld

Helps you update your status on Facebook under certain conditions declared in your sketch.

Social media shields allow you to use your Arduino board to access your favorite social media applications, using your smartphone as a channel between them.Learn more from the social media shields tutorial.

Facebook Library allows Arduino board to post status and upload pictures on your account using 1Sheeld application.

Adding #define CUSTOM_SETTINGS along with #define INCLUDE_FACEBOOK_SHIELD is a key that will let you unlock the Facebook shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.

Note

For Android M(6) or greater, there are permissions to be granted before using the Data Logger shield, please make sure to grant the permissions or else it may affect the application’s performance.

void post(const char *)

Updates your status on your Facebook account.

SYNTAX
Facebook.post(status);

RETURNS
None.

PARAMETERS
Takes a const char array holding the text to be updated.

USAGE
Facebook.post(“statusToBePostedOnFacebook”);

 

void post(String)

Updates your status on your Facebook account.

SYNTAX
Facebook.post(status);

RETURNS
None.

PARAMETERS
Takes a string object holding the text to be updated.

USAGE
String status = “statusToBePostedOnFacebook”;
Facebook.post(status);

 

void postLastPicture(const char *)

Posts last picture taken by your smartphone camera with the option to upload from OneSheeld folder or Camera folder.

SYNTAX
Facebook.postLastPicture(status,folderDirectory);

RETURNS
None.

PARAMETERS
1st Parameter takes a const char array holding the status to be updated along with the picture.
2nd Parameter takes a byte holding a number to upload picture from OneSheeld folder “0” or Camera folder”1″.

USAGE
Facebook.postLastPicture(“status to be posted on facebook along the picture” , 0/1 );

 

void postLastPicture(String)

Posts last picture taken by your smartphone camera with the option to upload from OneSheeld folder or Camera folder.

SYNTAX
Facebook.postLastPicture(status,folderDirectory);

RETURNS
None.

PARAMETERS
1st Parameter takes a string object holding the status to be updated along with the picture.
2nd Parameter takes a byte holding a number to upload picture from OneSheeld folder “0” or Camera folder”1″.

USAGE
String status = “status to be written to facebook along the picture”;
Facebook.postLastPicture(status , 0/1);