“Uncaught (in promise) undefined” error when using with=location in Facebook Graph API query
The error tells you that there is an error but you donĀ“t catch it. This is how you can catch it: getAllPosts().then(response => { console.log(response); }).catch(e => { console.log(e); }); You can also just put a console.log(reponse) at the beginning of your API callback function, there is definitely an error message from the Graph API … Read more