1

I want information from groups where I am and I can not get it. Always the code returns an empty data.

{u'data': []}

My code is as follows:

import facebook

graph = facebook.GraphAPI(access_token='my token')
a = graph.get_object('me/groups')
print(a)

What is wrong? I'm using Python 2.7.10 and Facebook official sdk. I've tried with facepy and it's the same, empty data.

Is it a bug?

matisetorm
  • 857
  • 8
  • 21

1 Answers1

0

First you question isn't complete. You need to show what permissions you are asking for and what API version you are using. That said I suspect one of two things.

You are not using the necessary permission "user_managed_groups".

Or

You don't realize that with that permission that "groups" edge will only return the groups which the user is an admin of.

It is not possible to do anything with a group that the logged in user is not an admin of via the API. Learn about me/groups HERE

Frank D
  • 612
  • 4
  • 14