This question already has an answer here:
- How do I make big jungle trees? 4 answers
I have a jungle tree farm, but all of the trees that grow are short and they're not producing any cocoa beans.
How can I farm tall jungle trees and cocoa?
First, to grow a giant you must plant 2x2 square of saplings (and feed them bonemeal if you want it fast).
(understand that the ivy that grows on the tree is "outside", that means it occupies 4x4 space outside the 2x2 trunk, so to grow the tree at the bottom of a pit you need a 4x4 pit.)
Next, the trees don't grow cocoa. They serve as soil for cocoa plants. Place a block of Jungle Wood, plant 4 cocoa seeds on its 4 sides and they will grow into mature cocoa plants.
And last but not least - it may be hard to make your farm self-sustainable. Supposedly one jungle giant drops less than 4 jungle tree saplings on the average...
to get cocoa you need to put some cocoa on the jungle wood (which creates a small pod) and let it grow (or bonemeal it) which doubles or triples the cocoa
To make a tall tree plant 4 saplings in a 2x2 square. Then place bone meal on one of them to get a tall tree. Here is a video on how to do it.