Possible Duplicate:
$ not defined in JavaScript
Firebug is telling me:
ReferenceError: $ is not defined [Break On This Error]>
$.ajax({
but I'm not sure why, or how would I correct this?
This is supposed to write the data from the facebook auth to a url or something so that I can retrieve it later with java.
<script>
function login() {
FB.login(function(response) {
if (response.authResponse) {
// connected
console.log((response));
console.log((response.session));
$.ajax({
url: "fbReceiver.html",
data: response,
type: "POST",
success: function() {}
});
} else {
// cancelled
}
});
}
</script>