Twin paradox in curved space time In a flat space, where special relativity works, a travelling body can only return to the same point if we apply some kind of acceleration to the body.
So twin paradox is not a paradox because a travelling body that returns to the same point where it starts is not an inertial reference.
But then we have general relativity, that states that mass (energy) curves space-time. So when a photon changes its trajectory passing nearby sun, it's actually moving in a straight line, but in a curved space-time.
Now we can create a new version of twin paradox, where the spaceship that carries one of the twins uses the curvature of some astronomical body (like Jupiter, sun or a black hole) to return to the same point?
In that case which twin will be older?
How to solve the paradox in this context?
 A: 
In that case which twin will be older?

Each twin experiences a proper time $\int ds$, where the integral is taken along their world-line. In general, this is all we can really say. However, in the case of a static spacetime, you can define a gravitational potential and then analyze the proper time in terms of two terms, a kinetic term (special-relativistic $\gamma$) and a gravitational one (proportional to the potential).

How to solve the paradox in this context?

The SR paradox occurs if we assume, erroneously, that there is symmetry between the twins. The SR paradox is resolved because the world-lines are different. The symmetry fails because they're distinguishable: only one of them is inertial.
The GR version you've posed is resolved in the same way: the world-lines are distinguishable (although both are inertial), so integrating $\int ds$ along them gives different answers. For instance, one could orbit the earth 47 times in an elliptical orbit, while the other orbits it 10 times in a circular orbit. The orbits intersect at the beginning and end.
A: First, there is nothing surprising or paradoxical about two geodesic paths from $A$ to  $B$ having different lengths.  From a point on the equator, you can travel 1/4 of the way around the world to the North Pole while your twin travels 3/4 of the way around the world to the North Pole.  Even though you both start and stop at the same places, your odometers show different lengths for your journey.  
In the same way, if two travelers take different geodesic paths from one event to another, there's no reason those two paths should have the same length.  A clock is a spacetime odometer, so there's no reason their clocks should show the same elapsed time.   Which twin is older?  The one who followed the longer path through spacetime.  Still no paradox. 
It's been suggested in the comments that there might be a paradox in the "fact" that Bob's clock always runs slow in Alice's (fixed) reference frame and vice versa.  But we're in a curved spacetime, so there are no global reference frames.
So I'm left wondering where the alleged "paradox" is supposed to be.  
A: Paradox, noun: a seemingly absurd or self-contradictory statement or proposition that when investigated or explained may prove to be well founded or true.
The Twin Paradox is most certainly that.
Before bringing general relativity (GR) into the mix, it's important to understand exactly what the paradox is, as it is much more than just an asymmetry between the twins' world-lines.
In the simplest formulation of the problem (and since it's a thought experiment: why complicate it?), twin A stays at home in his stationary pool--training, while twin B sets off running at near the speed of light. (I'm using triathletes because of the OP's profile).
During the marathon journey, twin A sees twin B aging more slowly. Meanwhile twin B sees twin A aging more slowly. This is already a paradox for some, but easily resolved with the Lorentz transformation.
Now comes the all important "transition" portion of the training: run-to-bike. Twin B is good, he can do it in 0 seconds. Just like that he is headed home on his Zipp, at near the speed of light. Note that twin A looks out and agrees: wow: that exchange took 0 seconds--in fact all observers agree, it was instantaneous.
On the ride home, twin A sees twin B aging more slowly, and vice versa; yet when they meet up, twin B is much younger.
Now that is a paradox: if they always see the other aging more slowly:
(1) how can that be in any case?
(2) how come twin B aged less?
Well, people say it's an asymmetry, or there's acceleration. All true: but the elapsed transition time was 0 seconds in each frame. How can zero seconds in each frame account for years of difference between the frames?
The resolution comes in the relativity of simultaneity: when twin B transitions, his definition of "now" on Earth makes a great leap forward--years. Since all this is occurring outside his light cone, it has no effect on him--he turns around and "computes" that far outside his light cone, his brother is now much older, and when he gets home, he discovers he was right.
In summary: A and B always see each other aging more slowly. When B turns around, A says his clock advances 0 seconds, and he says B's clock advances 0 seconds (though B is far outside his light cone, and he only learns of this later). Meanwhile B says his clock advances zero seconds, but he computes that A's clock has advanced years. Now for B this may seem entirely as an abstraction, much like the Andromeda paradox: when you hang a U-turn on the autobahn, "now" on Andromeda can change years--but what does that mean to you: nothing.
Using curved space time do reduce g-forces during the run-to-bike transition has no effect on the paradox.
A: Lets consider slightly more realistic version where the course reversal happens at high but finite acceleration to avoid any unphysical discontinuities.
So how is the course reversal achieved by the moving brother? There is really just one option: he flies a parabolic semi-orbit around extremely heavy body.
That means he descends into a gravitational well near the periapsis, and due to gravitational time dilation his time slows down and he sees the his static brother age fast!
Note that in special relativity when accelerating, you see time flowing faster ahead of you in the direction of acceleration, which is how the moving brother sees the static brother age during the course reversal. And since general relativity is defined from special relativity by equivalence between uniform gravitational field and acceleration of the reference frame, it is logical to expect the time dilation be the same in both cases.
