if (response.status === 'connected') {
$.ajax({
url: 'https://graph.facebook.com/oauth/access_token',
type: 'GET',
data:'grant_type=fb_exchange_token&client_id="done"&client_secret="done"&fb_exchange_token="done"',
success: (function (response) { alert(reponse); })
}); testAPI();
}
Although my ajax query successfully passes the data to the URL, it encounters an error related to the function response.
Uncaught ReferenceError: reponse is not defined
$.ajax.success
c.extend.ajax.w.onreadystatechange