1. Try out DropBox link preview
a) Go to Account Settings > Advanced Settings > Preview pre-release features and click "Show preview snippet of links below message"
b) Post a Dropbox link with public permissions and observe is rendering
2. Implement a similar owncloud implementation
Here are places in the code to get started: