I'm working on a basic Xamarin.Forms app for a client, which will contain some tabs like :
- a company presentation tab (address, phone number, mail, ...)
- a news tab, with data coming from a dedicated API, or posts from the company's Facebook page
- a tab allowing to schedule an appointment
- an "about" page tab
For the news tab, I would like to display informations coming from a dedicated service, or from my client's Facebook page. In both cases, I would like to display a "date", an "image" and a "description". If the data come from Facebook, I would like to display too the "URL" to redirect to the corresponding post.
To recover the Facebook feed of my client's page, I've created a new app on "developers.facebook.com", and I can recover the expected informations ("created_time", "message", "id", "picture") through the API Graph Helper, with calls to "client_page/feed" or "client_page/posts".
For the moment, I'm able to recover the data in my app with an URL like:
https://graph.facebook.com/v8.0/client_page/posts?fields=message,message_tags,picture,full_picture,permalink_url,created_time,story&access_token=ACCESS_TOKEN
But I have remarked that returned post that are events have not "message" or "picture" fields.
I can recover them by calling "client_page/events", which return some other informations like "id", "start_time" or "description".
I can't find a relation between the results of these 2 calls ("client_page/posts" and "client_page/events"): the returned id are not corresponding. Is there a way to find a relation between a "post" and an "event"?
Is there another way to recover these information, like an existing package that I could import in my project directly?
And finally, I haven't yet found a way to generate a "permanent" token to make these calls: must this be done on my client's page side or on the Facebook app side?