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.
Answer by rankornfeld · May 29, 2018 at 03:14 PM
I am getting something similar with the latest Unity Facebook SDK 7.12.1 when trying to call:
FB.AppRequest()
to send requests to friends. Any findings on that?
Answer by RoCo · May 30, 2018 at 04:31 PM
Any progress on this?
We have exactly the same problem using 7.12.1 I reported the bug to Facebook, https://developers.facebook.com/bugs/1821608858133184/
Hope this help to find a solution
Answer by raiapplication · Jun 08, 2019 at 10:58 PM
Any Updates?? I am stuck in the same problem! ;(
Your answer
Follow this Question
Related Questions
If you install the Google Play Game Plugin, you will not be able to sign in to Facebook. (iOS) 1 Answer
How To: Scene Change After Facebook Login? 1 Answer
Unity + Django + Facebook 0 Answers
Using Facebook Login unity Pc Build 0 Answers
Unity Facebook SDK Login in using FB app rather than Safari browser 1 Answer