accept as input the URL of a tweet (https://twitter.com/<username>/status/<id>)
fetch the tweet using the twitter oEmbed API (https://dev.twitter.com/docs/embedded-tweets)
store the tweet’s embed contents and url
display the tweet's embeded version when displaying the field from a template
Getting the code
The code created throughout this tutorial is available on github: https://github.com/bdunogier/TweetFieldTypeBundle.
FieldTypes, like any other eZ Publish 5 extensions, must be provided as Symfony 2 bundles. This chapter will cover the creation and organization of this bundle
Read more about Creating the bundle and structuring the bundle.