The five lads, who have reportedly not been together since the end of their tour in November 2013, took the image with Niall Horan holding the camera.
On rehearsals for their next tour already, James managed to ask the boys to take the photo as part of his role guest editing The Sun newspaper for Sports Relief.
Other celebrities who have taken a selfie for actor-comedian James include Kian Egan, Abbey Clancy and Jack Whitehall.
One Direction have been spending the last few months relaxing after a gruelling 131-date world tour which took in America, South America and Europe.
While Harry remained in sunny LA, his bandmate Liam also sought the opportunity to take a holiday. jetting off for a romantic getaway with his girlfriend Sophia Smith and using the hashtag #liamsholidaydiary, to keep his 15 million followers in the loop
Liam Payne poses on holiday
For Zayn and Louis, the break from work meant the chance to spend time with their family and friends at home.
"Good times with the fam!" posted 21-year-old Zayn, along with a photo of himself surrounded by relatives. "#feelinlikeakidagain! Ha!"
"Sorry had to upload this ha :)," wrote Doncaster-born Louis with a video of himself playing football in his garden. "2nd time lucky!" he jokingly added as the first ball missed the goal and the second ball got stuck in a tree.
During his downtime, 20-year-old Niall was also indulging in his passion for football, where he paid a visit to Derby County Football Club, meeting players Patrick Bamford and Ben Davies.
The selfies come at a time when a cancer research campaign titled #nomakeupselfie has taken selfies on social media site Facebook by storm.
The campaign asks women to take a selfie with no makeup on, before they then provide details of how their friends can donate £3 to Cancer Research UK by texting BEAT to 70099.
The women then nominate friends to also take a selfie wearing no makeup.