Best way to get data for an upcoming events component?
So i'm building this website for a racing driver, and i would like to make a component for a section that shows the upcoming races/events in a grid, but i'm not sure what way would be best to get the data.
I used Strapi as the CMS, along with Next.JS, but i recently started thinking if i should just use the facebook pages api, if it's easy enough to use and get access to, since he already posts the events as facebook events, but on the other hand i could just use strapi and make it easy for myself, but then he would have to add the events both on facebook and in strapi.
14 Replies
https://developers.facebook.com/docs/plugins/page-plugin/
make it easy for yourself and him
just set the "tabs" to
events
yea but i only need the data for the events, not the ugly widget/embed
you can remove some things from it
it doesnt even work properly

and thats about how much i can remove on it
as far as i can see
🤣
yeah, then you have to use the api
do you have any experience with using it?
nope
but shouldnt be too hard, since it is a "rest" api
yeah, but i have just seen people on reddit syaing they still havent gotten access to it yet
also how would i go about getting a access token for a page that i didnt make on my own account lol
its actually a Graph API
oh, really?
ye
i though it was still a rest-ish-ish api
i havent used a graph api before lol
me neither
good oportunity for you to learn
you might find an "adapter" to make it slightly easier