How to use timber to create shortcode
{{ function('do_shortcode', '[favorite_button post_id="%s"]'|format(post.id)) }}
// or
{{ function('do_shortcode', 'content') }}
// or
{{ function('do_shortcode', '[favorite_button post_id="' ~ post.id ~ '"]') }}