Webiopi is the best and easyest program you will find to control and program most I/O Expanders and gpio in general you can get started checking inputs and switching output with as little as 1 line of code, that beng said it would be usefull to know what type of expander you bought, wether you have it connected, if you down loaded and installed webiopi already and what stage your at like have you followed any of the tutorials yet and what you tried already, that way help would be forthcoming.
Toshi
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>WebIOPi | Light Control</title>
       <script type="text/javascript" src="/webiopi.js"></script>
       <script type="text/javascript">
       webiopi().ready(function() {
               // Create a "Light" labeled button for GPIO 17
               var button = webiopi().createGPIOButton(17, "Light");
               var control = webiopi().createGPIOButton(25, "Control");               // Append button to HTML element with ID="controls" using jQuery
               $("#controls").append(button);
               $("#controled").append(control);               // Refresh GPIO buttons
               // pass true to refresh repeatedly of false to refresh once
               webiopi().refreshGPIO(true);
       });       </script>
       <style type="text/css">
               button {
                       display: block;
                       margin: 5px 5px 5px 5px;
                       width: 160px;
                       height: 45px;
                       font-size: 24pt;
                       font-weight: bold;
                       color: white;
               }               #gpio17.LOW {
                       background-color: Black;
               }               #gpio17.HIGH {
                       background-color: Blue;
               }
       </style>
        <style type="text/css">
               control {
                       display: block;
                       margin: 5px 5px 5px 5px;
                       width: 160px;
                       height: 45px;
                       font-size: 24pt;
                       font-weight: bold;
                       color: white;
               }               #gpio25.LOW {
                       background-color: Black;
               }               #gpio25.HIGH {
                       background-color: Blue;
               }
       </style></head>
<body>
<table border ="2" style="width:600px">
<tr><td>Relay 1</td><td>Relay 2</td><td> Relay 3</td><td> Relay 4</td><td> Relay 5</td><td>Relay 6</td><td> Relay 7</td><td> Relay 8</td></tr>
<tr><td> <div id="controls"</td></div>
<td><div id="controled" align="left"></div></td></tr></table>
</body>
</html>