Forum Discussion
Zahra.B2024
1 year agoHonored Guest
Error with API Call in Meta platforms Need Assistance
I'm encountering an issue with an API call in my application that integrates with Meta platforms. Below is the code snippet causing the error:
Code Causing Error: 👇
fetch('https://graph.facebook.com/v12.0/{user-id}/feed', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {access token}'
},
body: JSON.stringify({
message: 'Hello, world!'
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 11 months ago