Hi, The MATLAB built in function 'webwrite' might be helpful for this purpose. For details refer to the following link.
For facebook api refer to the following link:
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.6
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!