Share new created userinput on facebook page automatically

Hi guys. I have a calendar which is open for users to create new events, by filling out a user form I made. The calendar is made in dynamic pages, a category page with all the event and a item page with the individual event.
As you can see, I have a facebook share button on the “item” page, but my question is: Is it possible to share the event on a facebook page automatically when the user creates the event so that the user does not have to manually share the page by pressing the facebook’s share button.
I hope you guys can help me :slight_smile:

Do you want to share it on your page or the user that adds the event?

I want to share it on my page Dansk Kirurgisk Selskab

Okey so you need code to auto publish what people write in a form on your page and that code should publish the events to your Facebook Feed?

Yes exactly :slight_smile: But the code should just post the events URL on the facebook page’s feed. The code should not create an event on facebook and publish that :slight_smile:

Hi magnus,

You can do this using wix-fetch and facebook Graph API which lets you post to facebook through http requests.

Hi Gediminas

Thanks for the lead but as you know we are not coder. Can you give us sample of fetch code for facebook and which api from facebook developer we should use?

I wanted to do the same, when our visiter submit form then it will automatically share it on our Fabeook page.

Thanks in advance.

DA

Hi Darken,

this forum can help you with wix code specific capabilities, like how you can call an api out there in the internet in general using wix-fetch or triggered by an event in your site. we are not familiar with facebook capabilities and the above use-case specifically. maybe someone from the wix code community who has done that before might be able to help. otherwise please have a look into the facebook api documentation or look into wix arena to hire a wix code expert to help you out

good luck!
Shlomi