Skip to content

Instantly share code, notes, and snippets.

@mrgulshanyadav
Created October 15, 2022 15:32
Show Gist options
  • Save mrgulshanyadav/8f53d43d0371041c4f4b02aa7ce2a707 to your computer and use it in GitHub Desktop.
Save mrgulshanyadav/8f53d43d0371041c4f4b02aa7ce2a707 to your computer and use it in GitHub Desktop.
const options = {
url: 'https://graph.facebook.com/v15.0/me',
method: 'POST',
headers: {
'Authorization': `Bearer ${bundle.authData.access_token}`
},
}
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;
// You can do any parsing you need for results here before returning them
return results;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment