MarshalDirectiveException: Cannot marshal type 'System.Collections.Generic.IEnumerable`1'

Hi, I am trying to use the example login from facebook, the init seems to be ok but when i call:

public void FacebookLogin() {
FB.LogInWithReadPermissions(new List() { “public_profile”, “email”, “user_friends” }, AuthCallback);

from a button click (from a webgl build in a browser) i am getting a: MarshalDirectiveException: Cannot marshal type 'System.Collections.Generic.IEnumerable`1'.

It comes from the first parameter and I am at a loss as to how to resolve this.

Any help would be appreciated.

I am getting something similar with the latest Unity Facebook SDK 7.12.1 when trying to call:


to send requests to friends.
Any findings on that?

Nope, sorry, I had kinda given up on this …

Any progress on this?

We have exactly the same problem using 7.12.1
I reported the bug to Facebook,

Hope this help to find a solution

Any Updates?? I am stuck in the same problem! ;(