Get Friend list using OAuth and PHP?


I wanted to create a web based application which can tell users about the followers and their followings and profile page etc.
I tried hard and got everything working except for a few things, such as I cant filter output from Response
The PHP script I am using dont know where but converts Response into a string so I can’t get from it’s inner body.
I will really appreciate if someone could make me an application which has a login option, my profile, list of followers, list of followings option.
Thanks for reading guys.
Hope you will Help me


Here’s link to files.
I’ve managed to complete


Guys at Last I managed to make the loops and filter the outputs, just need to use nested get or post request now