You have to invite your friends to join your Minecraft world, to do this simply load the game then tap on a play under the friend option you'll see 'Add Friend' and 'join Realm', just click on Add Friend and now on the next screen select Find Friends by Gamertag, now enter Gamertag of your preferred friend, now it automatically connects with your friend.