facebook.request invitable_friends not calling back on Android.

Hello!

I am trying to request: facebook.request(“me/invitable_friends?limit=5000”)

On iOS it’s functioning properly, I get a callback and fill my UI with the list that I get.

On Android, I never get a callback. It just keeps loading. Which is weird because everything else I’m using from Facebook is working.

Is there anything that I might be missing for Android?

Thanks!

What happens if you use a lower limit, say 50?

Rob

Same thing, just tested it to make sure. :frowning:

I also tried other requests like “me/friends”, no callback.

Even though the login works fine on Android, and everything works perfectly on iOS.

Is there anything I might be missing?

Which Facebook plugin are you using?

“plugin.facebook.v4”

Is there anything I can do? This is really setting me back in my project. :confused:

I solved this by using this instead of Facebook’s plugin.

local accessToken = settings.facebook.getCurrentAccessToken() local json = require( "json" ) local function handleResponse( event ) if not event.isError then local response = json.decode( event.response ) -- Handle friends here under response.data else print( "Error" ) end return end network.request( "https://graph.facebook.com/me/invitable\_friends?limit=5000&access\_token="..accessToken.token, "GET", handleResponse )

That’s a good work around. I was going to try and see if I could reproduce your problem, but I’m having other Facebook issues on Android with my test app that we are trying to solve. I asked an engineer who isn’t having the problem I’m having to take a look at the problem and see what’s going on.

However, your REST solution is perfectly valid.

Rob