I'm trying to collect with JAVASCRIPT / JQUERY some specific user data that is not part of my friends list. I would like to capture data as: likes
, friends
, posts
and groups
.
I did some testing and saw no difference in whether or not I logged into Facebook. The result is almost always given to JSON empty:
{
data: [ ]
}
In some cases it returns the correct data, but most apply in case of emptiness.
A specific case happens with friends
:
{
error: {
message: "Unsupported operation",
type: "FacebookApiException",
code: 100
}
}
The tests are done via url:
https://graph.facebook.com/{user-id}/{edges}?access_token={access_token}
Where:
{user-id}
= userid (My is 100002309392122);
{edges}
= data that I want to collect said at the beginning of the question and that are listed in facebook documentation .
{access_token}
= is the access key that the API needs to get the data.
Access token was generated by me via an application that I just created to generate the same. Concatenating the application ID with the pipe character and then using the App Secret generated the token .
I wanted to change this scenario to " JSON empty". Am I doing something wrong? Can not get this data? #Comofaz?