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
ἔρως
ἔρως23h ago
https://developers.facebook.com/docs/plugins/page-plugin/ make it easy for yourself and him just set the "tabs" to events
M1CK3Y
M1CK3YOP23h ago
yea but i only need the data for the events, not the ugly widget/embed
ἔρως
ἔρως23h ago
you can remove some things from it
M1CK3Y
M1CK3YOP23h ago
it doesnt even work properly
No description
M1CK3Y
M1CK3YOP23h ago
and thats about how much i can remove on it as far as i can see
ἔρως
ἔρως23h ago
🤣 yeah, then you have to use the api
M1CK3Y
M1CK3YOP23h ago
do you have any experience with using it?
ἔρως
ἔρως23h ago
nope but shouldnt be too hard, since it is a "rest" api
M1CK3Y
M1CK3YOP23h ago
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
ἔρως
ἔρως23h ago
oh, really?
M1CK3Y
M1CK3YOP23h ago
ye
ἔρως
ἔρως23h ago
i though it was still a rest-ish-ish api
M1CK3Y
M1CK3YOP23h ago
i havent used a graph api before lol
ἔρως
ἔρως23h ago
me neither good oportunity for you to learn you might find an "adapter" to make it slightly easier

Did you find this page helpful?