How to retrieve the IDs of Facebook pages (places) located in a specific location and liked by a user's friends? -


I know that using a solution Facebook graph API to retrieve the ID of the locations located in a particular location Will be the ID of all the Facebook pages that were liked by my friends, and then to select the IDs of those pages in the place where they liked their friends (I know how many friends like one page using the "social context" Are). But this does not sound like the best solution for me (it represents a lot of data).

Depending on the operation in the request using the expression JSONPath expression can mean the format () but as the documentation says "filters for security reasons And script Jasonpath is not allowed in Jasonpath's expression to produce ", which limits the usefulness of this strategy.

So I tried to use the batch requests:

  curl \ -f 'access_token = ...' \ -f batch = [{"method": "Search_id", "relative_arpal": "me / friends" field = choice {id} "}, {" method ":" get "," relative_arl ":" search_id ":" search = Type = location and center = 48.85,2.35 and distance = 1000 & amp; Id = {result = choice-id: $ Data *. Likes.data *. Id} "}] ' 

There are 2 problems with each batch request:

  1. Strange is enough," me / friends? Fields = choice {ID} "I get the choice of some of my friends Nds (I think it is possible to meet all the choices of all my friends because friend_apps are disliked, make me wrong if I am wrong)
  2. Even for the user's choice of friends, I also manage to get it back, I did not get anything from the second batch request.

NB: My friends my friend There will be no need to log on to the address (which means that I do not have user_likes

You need to grant a friend a grant to user_likes . You are probably using Graph API Explorer to test your friend and User_likes can be allowed (why not see anything else like this)

One user access

Notice these friends Not say.

P>

The second part, what ID for Aids place back to the first part of the batch you sure? For each friend's object, only 25 likes are returned, you are not guaranteed that the way you get them are type pages.

In addition to search? Type = place & center = 48.85,2.35; Distance = 1000 & amp; Id = , I do not do what you think should do. id starts to override the type, center and distance.

For example search = type = place and center = 48.85,2.35 and distance = 1000 and id = 3750 93055847509

what

< P> Is similar to search? ID = 3750 93055847509

It seems as a bug or any desired behavior, as well as IDs are overridden to every other parameter.

Overall, this batch call work, the results returned by you are wrong for your desired result.

So the only way is actually the initial plan that your but query in any event will only work for friends who are using your app.

Only friends who use the requesting app will be returned to friends.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -