This script shows how Helium can be used to automatically update your Facebook status. When you run the script, it first prompts you for your Facebook username and password. As you can see from the code, those details are not stored anywhere so you can safely enter them. Once you have completed this, Helium automatically logs you in and updates your status.

import static com.heliumhq.API.*;
import java.util.Scanner;

public class FacebookExample {
    public static void main(String[] args) {
        Scanner sc = new Scanner(;
        System.out.println("Email address registered with Facebook:");
        String email = sc.nextLine();
        System.out.println("Password registered with Facebook:");
        String password = sc.nextLine();
        write(email, into("Email or Phone"));
        write(password, into("Password"));
        click("Log In");
        write("Test", into("Update Status"));
from helium.api import *

email = raw_input("Email address registered with Facebook: ")
password = raw_input("Password registered with Facebook: ")

write(email, into="Email or Phone")
write(password, into="Password")
click("Log In")
write("Test", into="Update Status")

To try the script for yourself, first follow the steps on our Getting Started page. Then execute the run.bat/ shell script in the examples/Facebook status subdirectory of your Helium installation.