Change type to fragment in get_posts()

The new method allows more flexible requests with other parameters than just type, from now on, you can use things like mentions, limit, entities, etc. in your requests
Update example to use fragment instead of type for get_posts()