Question

I'm using the C# Facebook SDK for Windows & Windows Phone on Windows Phone 8 and trying to use the LoginWithApp approach:

public void Authenticate()
{
    SessionStorage.Remove();

    var client = new FacebookSessionClient(this.appId);
    client.LoginWithApp("basic_info,read_stream,read_friendlist", "custom_state_string");
}

If I use the above code, it works fine in the emulator using the Login Simulator, but on a physical device I always get the following error response:

"(No connection to facebook - #2002) Connection failed: Unable to communicate with facebook in order to get the access token"

However, this can't be a simple communication problem because if I remove the read_friendlist permission it works every time.

Can anyone explain what's going on and how to fix this, please?

Was it helpful?

Solution

read_friendlist should be read_friendlists with an S on the end.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top