This is my first tab so apologize for any mistakes and any corrections would appreciated :)
The riff is a bit tricky but it's really cool when you can play it up to speed
I don't really know how to explain where your fingers go but they start with:
thumb- E, A and D strings
index- G string
middle- B string
ring- e string
Standard tuning
[ Tab from: http://www.guitaretab.com/f/foster-the-people/288767.html ]
e|----------------------------------------2-----------------------|
B|--------3-------------2-------2-------------3---------2h3---3p2-|
G|------------4---------0-------0-------2-------2-------2-----2---|x2
D|------4-------4-------------------0-------------------2-----2---|
A|--2-----------------------------------------------0-------------|
E|------------------2-------3-------------------------------------|
On the second time he plays the open e string near the end after the '3p2'