Search code examples
c#facebooksdkfacebook-group

I cannot retrieve my groups using Facebook SDK 5.1 using C#


I am using the Facebook SDK and I am trying with C# to get the groups the user is subscribed to. The code is as follows

JsonObject Groups = (JsonObject)client.Get("me/groups");

After this code executes I get an empty object. Is it something that I am missing?

The sale code for likes (JsonObject Groups = (JsonObject)client.Get("me/likes");) and friends (JsonObject Groups = (JsonObject)client.Get("me/friends");) is working ok.


Solution

  • You need to prompt the user for user_groups extended permission.