Please always prepare your query, never use a $_POST or any other user input value directly in your query to prevent SQL injection.
SQL Injection is more dangerous then you think
If you insert $_POST["location"] = "'' -- " into @Frank Provost's code, then you will UPDATE all the rows instead of the one with the FBID session key.
Multiple queries with SQL Injection
If you have multi query enabled then you can insert $_POST["location"] = "''; DROP TABLE users -- " into @Frank Provost's code, then you will DROP the table users.
Always use prepared statements
You can take a look at my PDO implementation example on GitHub:
https://github.com/maartensch/database-pdo-mysql-class-php
Example code:
$sql = "INSERT INTO yourTablename(id,name) VALUES(:id,:name)";
$userInputId = 'yourUnescapedValue';
$userInputName = 'yourUnescapedValue';
$preparedStatements = array(':id'=>$userInputId,':name'=>$userInputName);
Db::getDb()->query($sql,$preparedStatements);