I'm having trouble with my iPhone 5, twice recently when I wake up my phone has posted photos to facebook, changed my cover photo and shared friends statuses. The first time my camera opened and took the photo it posted and the second time (last night) it took a photo from a message my friend had sent me and uploaded that. The first time 12 different phone calls were made over 7 minutes and and last night 11 calls were made between 12pm and 2am. And each time multiple gibberish messages were sent to friends. I contacted apple the first time and they say it doesn't seem like it's been hacked but I cleared my phone completely any way. I'm yet to call back about last night but I have noticed that both times this has happened my phone has been face down on my macbook pro which is closed but not shut down, the first time I had a pin on my phone and the second I didn't. It is also known to skip through my songs while I'm awake if it's on my macbook, is this just coincidence or is it possible that the macbook is the cause?