Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter best friend suggestions to avoid addition of people who have blacklisted the current user #8

Open
Konard opened this issue Dec 17, 2021 · 0 comments

Comments

@Konard
Copy link
Owner

Konard commented Dec 17, 2021

At the moment, it is possible to get this error:

{
  "response": [
    638833428,
    1201
  ],
  "execute_errors": [
    {
      "method": "friends.getMutual",
      "error_code": 15,
      "error_msg": "Access denied: you are in users blacklist"
    }
  ]
}

Maybe it is possible to update the stored function to include required data to filter:

var suggestions = API.friends.getSuggestions({ filter: "mutual", fields: "online,last_seen", count: count, offset: count * Args.offset }).items;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant