Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity and Facebook API

Discussion in 'Editor & General Support' started by sandolkakos, Jun 4, 2013.

  1. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
  2. BrUnO-XaVIeR

    BrUnO-XaVIeR

    Joined:
    Dec 6, 2010
    Posts:
    1,687
    Yeah I though would take a month or so for UT to release that. Oh boy I was so wrong.
     
  3. Ian-Dundore

    Ian-Dundore

    Unity Technologies

    Joined:
    Dec 14, 2012
    Posts:
    7
    Hi folks,

    This is actually my project.

    The features described in the blog were actually released in 4.1.2 and 4.1.3. Primarily, this is the Chain of Trust system, which enables Facebook to ensure that calls to its backend are genuine.

    The other half of the project is a SDK (similar to an asset store package) which will allow you to integrate Facebook features into your WebPlayer games much more easily. This has not yet been released. Instead, we're currently running a very small closed beta to work out the last kinks in the system before a public release. Incorporating feedback from our trial group has taken longer than I originally anticipated, and I apologize for that.

    We're currently planning to make the SDK available on the Asset Store before Unite 2013 in Vancouver.
     
  4. BrUnO-XaVIeR

    BrUnO-XaVIeR

    Joined:
    Dec 6, 2010
    Posts:
    1,687
    Sounds as good news to me. Good luck iand. :)
     
  5. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    This is great.
    Thanks so very much for your attention iand :)
     
  6. Undead

    Undead

    Joined:
    Nov 13, 2009
    Posts:
    49
    Firstly, thanks for the update :D

    Secondly, is this SDK going to be free or charged :confused:
     
  7. Ian-Dundore

    Ian-Dundore

    Unity Technologies

    Joined:
    Dec 14, 2012
    Posts:
    7
    Free. :)
     
  8. Undead

    Undead

    Joined:
    Nov 13, 2009
    Posts:
    49
    Woo :D

    Hope this arrives soon :)
     
  9. bmackenzie

    bmackenzie

    Joined:
    Jan 5, 2011
    Posts:
    37
    So what's the word on the availability of the API? Unite is just around the corner :)
     
  10. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    Hi iand, I sent a private message to you. Please check your inbox.
    Thanks.
     
  11. 6foot3foot

    6foot3foot

    Joined:
    Jan 24, 2013
    Posts:
    1
    I know this is an old thread. But just wondering if there's any update. I have a project due in weeks and need this for the client. Just wondering if I need a 3rd party tool or not. Ideally the boys and girls at unity could update that post on the web with an actual date, or just say 'coming soon' as 4.1.2 is long past and still no word.
     
  12. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    Same here.
    I need that feature to release my game in the Airspace (App store of Leap Motion), because it uses Facebook User Requests, that currently works only in the platforms: Web, iOS and Android.
     
  13. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    @unity.iand, is it planned to work with standalone Mac/Win/Linux builds? Looking forward to this (if it works with standalone builds)!
     
  14. soundwav_

    soundwav_

    Joined:
    Apr 23, 2013
    Posts:
    12
    Does that mean that the new Unity Facebook SDK will support only the WebPlayer? Meaning that we would still need to get a 3rd party plugin to support other platforms...?
     
  15. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    541
    Is this still true? Would be nice to know, 'cause we're currently thinking about a FB solution for our current project.
     
  16. Ahmedbenchedli

    Ahmedbenchedli

    Joined:
    Mar 1, 2013
    Posts:
    25
    Hi, same thing here , we're having some essues with the integration of Facebook features into our WebPlayer games , and we would know if the facebook sdk is still going to be available soon "before unite 2013" as mentioned before, thanks .
     
  17. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,796
    Also keen to hear the status of this, among all the other questions asked above.
     
  18. ytrew

    ytrew

    Joined:
    Feb 22, 2013
    Posts:
    20
    Any news? I'm expecting something any day (please be today) now :)
     
  19. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,796
  20. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
  21. Ahmedbenchedli

    Ahmedbenchedli

    Joined:
    Mar 1, 2013
    Posts:
    25
    It's awsome, i downloaded the SDK yesterday i started to tweak and try to understand how it works, to be honest i'm facing some issues with it :confused: i would like them to add a documentation on how to add and call the FB utilities . A nice tutorial would be of great use too , thanx :)
     
  22. bmackenzie

    bmackenzie

    Joined:
    Jan 5, 2011
    Posts:
    37
    Agreed, I've been stumped since I started tweaking. Trying to create an android application. I have set all the required information pertaining to how the app integrates with Facebook. It doesn't work, what I'm getting hung up on is the class name., for some reason when I import the SDK package and enter by app ID the application Unity side states that my classname is "com.facebook.unity.FBUnityPlayerActivity" which does seem right at all. The tutorial given pertains to web player, which is something I could really care less about. I would like to integrate with Android, IOS and Windows 8 Modern UI. Is anyone seeing a similar issue, or perhaps gotten past this and have some advice?

    Thanks,
    Bryan
     
  23. magmaloic

    magmaloic

    Joined:
    Sep 2, 2013
    Posts:
    1
    Hi there,

    I tried to make the InteractiveConsole work on Android and I am currently stuck at the FB.init() phase. The error I have is : com.facebook.http.protocol.ApiException: remote_app_id does not match stored id .

    Does anyone here had the same issue?
     
  24. Ahmedbenchedli

    Ahmedbenchedli

    Joined:
    Mar 1, 2013
    Posts:
    25
    I'm actually facing a more elementary problem , i'm trying to accomplish a basic web integration just to get started, but even that is not working !! when i try to implement basic requests using "FB.AppRequest", the native Unity Facebook Request Dialog is displayed and allows me to send invitations .. however none of my freinds gets that invitation ?? i don't know what i'm doing wrong ?! can somebody help me with that please ?
     
  25. meisterkaiser

    meisterkaiser

    Joined:
    Sep 5, 2013
    Posts:
    1
    @magmaloic: I guess you did double check the FB app id in FB settings matches the id of your app?

    we're also having issues - tried to export the SDK example as native android app, FB.Init won't get past login though, claiming the app is in sandbox mode, wich it is definitely NOT :)

    Did anyone make the example work on Android?
     
  26. CoixdeNono

    CoixdeNono

    Joined:
    Dec 10, 2012
    Posts:
    3
    I think making the exemple work on android is something near impossible, i tried to do it too but i'm stuck at the FB.init() phase just like magmaloic. some Help would be great if anyone have any idea, or maybe a solution :)
     

    Attached Files:

  27. bmackenzie

    bmackenzie

    Joined:
    Jan 5, 2011
    Posts:
    37
    Just tried SDK version 3.1.1, same issue and can't get past init call. Although the change log states the following:

    Several issues on Android, particularly one that prevented apps from requesting permissions beyond basic authorization
     
  28. Ahmedbenchedli

    Ahmedbenchedli

    Joined:
    Mar 1, 2013
    Posts:
    25
    Hi all, i'm facing a problem with posting my game score, i'm using "FB.API("/me/scores", Facebook.HttpMethod.POST, delegate (string r) { ; }, query);" , but it doesn't work, i don't now what i'm doing wrng !! can somebody help me please ?
     
  29. Ian-Dundore

    Ian-Dundore

    Unity Technologies

    Joined:
    Dec 14, 2012
    Posts:
    7
    I spoke to the Facebook engineers about this yesterday; they say that it should be fixed in 3.1.2, which is out now on both the Facebook documentation page and on the Asset Store.

    Have you tried again with the most recent version of the SDK?
     
  30. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    @unity.iand

    Is there any possibility to that Facebook SDK extends to be used on Desktop Platform (Windows/Mac/Linux)?
     
  31. Ian-Dundore

    Ian-Dundore

    Unity Technologies

    Joined:
    Dec 14, 2012
    Posts:
    7
    I'll bring it up with the team, but I can't promise anything. Thanks for the input, though!

    Edit: If you need something in the short term, there's a third-party product called Carrot which does support the desktop platform. However, it does not provide all of the functionality found in the SDK - it primarily provides ways to push data to social platforms, but not ways to pull data out.

    For example, Carrot doesn't easily allow you to pull a user's profile picture from Facebook.
     
    Last edited: Sep 16, 2013
  32. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    Thanks so much for replying me about that, unity.iand!
    Would be an amazing update if the SDK also works to Desktop platform.

    And thanks for tell me about the Carrot. I saw it and really it can't help me on my project.

    I "jerry-rigged" many systems in order to my desktop project use that systems:
    - Facebook Login
    - Get Facebook User Details (name, picture, friends, etc...)
    - Facebook Feed Post
    - Facebook Picture Post
    - Get Facebook App Requests (using database infos)

    To all of them, I use Unity together PHP/MySql.

    But the problem is:
    - To Facebook Login, the Unity needs call the External Brownser, in order to the user execute the login, while Unity stays checking a PHP code to know if the user already have logged. That PHP code will return the user's Offline Token to Unity.

    And the another one, that is impossible:
    - My app needs Send App Requests, and to do it, is necessary open Facebook "Request Dialog". But, in desktop is impossible, because the dialog do not send any return to Unity if I call the "Request Dialog" via "URL Redirect" :(

    If you know a third-party product that provide me "Facebook Login" and "Facebook Request Dialog", please let me know :)
    And, thanks again for your attention, unity.iand!