Search Unity

Facebook AppRequest Doesn't Work With Unity5

Discussion in 'Scripting' started by BonyYousuf, Mar 10, 2015.

  1. BonyYousuf

    BonyYousuf

    Joined:
    Aug 22, 2013
    Posts:
    110
    Hi,
    I have recently moved to Unity5 and now my facebook app shows error on creating fb apprequest dialog. This is the error I am getting

    Please note that I can use apprequest just fine on the editor. This error only pops up when I am trying with the web player. I have checked more into this and apparently some methods has been removed in unity5 for example this one http://docs.unity3d.com/ScriptReference/Screen-showCursor.html So I am guessing it has something to relate with that.

    Can anyone tell me what I should do now? Can I modify some code of FacebookSDK to work with unity5? Is anyone else having this problem?
     
  2. A.Killingbeck

    A.Killingbeck

    Joined:
    Feb 21, 2014
    Posts:
    483
  3. BonyYousuf

    BonyYousuf

    Joined:
    Aug 22, 2013
    Posts:
    110
    I know that. which is why I have posted that link. But Facebook Unity SDK is calling that function not my code. And that function is inside some dll i guess. and I can not access that code.
     
  4. jallen720

    jallen720

    Joined:
    Feb 22, 2015
    Posts:
    66
    Same issue here. Hopefully facebook updates their SDK to be compatible with Unity 5 soon...
     
  5. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,778
    Same here, I've been trying all day to get this going. Good to know it's not just me... sort of.
     
  6. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,778
  7. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Are you sure it's inside a dll? Previous errors in the Facebook sdk have been user updateable.

    Alternatively you might be able to fake it with an extension method.
     
  8. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,778
    Tried both with no luck.
     
  9. SwordStroker

    SwordStroker

    Joined:
    May 8, 2015
    Posts:
    6
    i have the same problem :(
     
  10. Arkasis

    Arkasis

    Joined:
    Nov 22, 2010
    Posts:
    61
    Hi !
    I'm trying to put some game on facebook canvas.
    All was working fine before I update to Unity 5.
    Now when I want to use FB.AppRequest all work fine on the editor, android and ios but it just does nothing on webplayer.
    Not any error and not any dialog popup shown....
    Someone fix it ?

    Thanks
     
    Last edited: Jun 8, 2015
  11. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,778
    Yep, That's because of the error posted at the start of this thread. There's nothing you can do to fix it in the Unity Plugin, You'll have to wrap the java script plugin instead. Don't ask me how though, I still have to figure that out.
     
  12. Arkasis

    Arkasis

    Joined:
    Nov 22, 2010
    Posts:
    61
    Well...
    Do you know when they will publish a fix for the Unity Facebook plugin ?
    I hope this is not in 5 years :-/
     
  13. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,778
    Nope, only Facebook know that... or maybe even they don't know that. Who knows!
     
  14. SwordStroker

    SwordStroker

    Joined:
    May 8, 2015
    Posts:
    6
    well i wrapped the Unity Javascript SDK and used it on WebPlayer it works so good.