Trouble retreiving friends data from facebook API
Hopefully this question will be clear. What I am trying to achieve is:
retrieving a friend list from a user with the friend information:
-location -education -name -profile picture.
The problem is the standard permissions given only has friend profile pic
and name. I used this to get the other information:
$params = array(
'scope' => 'email, friends_likes, user_about_me, friends_about_me,
friends_location, friends_website, friends_work_history,
friends_education_history'
);
$loginUrl = $facebook->getLoginUrl($params);
}
So now when I log in on my page, facebook asks me if I'm willing to give
those permissions to the app, so that is a good sign.
The problem is I'm still not able to figure out how to get the
information. When I try and do:
print_r($friends);
or
print_r($friends["data");
I still just get an array with name and ID.
Can anyone tell me why I'm not seeing the extra information?
Hopefully someone that is dealing with facebook API will get what I'm
asking, thanks!
No comments:
Post a Comment