facebook-unity-sdk

Facebook Unity and handling app requests

元气小坏坏 提交于 2019-12-12 02:45:29
问题 I pulled my original question because I managed to figured it out through trail and error and a lot of deep searching. So, I understand that using the latest Facebook SDK in Unity, you can pull all pending requests for a player using: FB.API("/me/apprequests", HttpMethod.GET, RequestHandler) Where RequestHandler is an IGraphResult, which you can then parse into a Dictionary, like so: void RequestHandler(IGraphResult result){ if (result != null) { Dictionary<string, object> reqResult = Json

Unity 5.1.1 android “merged manifest” or “classes into dex format” error

荒凉一梦 提交于 2019-12-12 02:23:03
问题 I tried this versions on my unity 5.1.1 (6.2.2, 7.0.1, 7.0.2) and I get errors in all when I build that in android. Any idea? In the 'stable version 6.2.2 I get "unable to convert files into dex format" errors: 1. CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. C:\Program Files\Java\jdk1.7.0_17\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files

Incorrect DebugKeyStorePath

血红的双手。 提交于 2019-12-11 19:49:14
问题 The 'Debug Android Key Hash' in the Inspector FaceBookSettings does not work (Windows7) because it uses an incorrect DebugKeyStorePath. This is caused because the drive ("C:\") is not included in the HOMEPATH. Only System.Environment.GetEnvironmentVariable("HOMEPATH") is used to build the path, which does not contain the drive. For the full path the System.Environment.GetEnvironmentVariable("HOMEDRIVE") should be added in front of the path. Until now I manually fix this after each SDK update

Facebook session data not recovering

不羁的心 提交于 2019-12-11 19:33:55
问题 I'm on Unity 5.1.1, Facebook 7.0.2 beta and testing on Android 5.1 and iOS 8.4 devices. I'm doing FB.Init(); with "status = true" to recover the session and "autologin". But my problem is that it doesn't work. When I call Init in onInitComplete callback FB.IsLoggedIn returns always false . I have tried in my project and in a blank project with the example scene. In the example scene I click on FB.Init , FB.Login , I log in then I close the app and open again and I have to login again. Is it a

challenge_brag and challenge_score in Friend Smash tutorial

筅森魡賤 提交于 2019-12-11 17:26:51
问题 With reference to the Friend Smash tutorial as https://developers.facebook.com/docs/games/unity/unity-tutorial what is the relevance of the challenge_brag parameter in the FB.Feed call and the challenge_score parameter in the FB.AppRequest call? As far as I can see they are not explained. 回答1: They are just custom parameters that go back to the game. It allows you to pass data through a request so you can handle it when the request is accepted and the invitee goes into the game. You can then

How do I get error details from FBResult in Facebook Unity SDK

天大地大妈咪最大 提交于 2019-12-11 16:35:54
问题 Is there any way to get error details from the FB.API() call in the Facebook Unity SDK? This code FB.API( query: "/me/achievements", callback: response => { if (!string.IsNullOrEmpty(response.Error)) { Logger.LogError("FB ReportProgress Error: " + response.Error); } else { Logger.Log("FB ReportProgress response: " + response.Text); } }, method: Facebook.HttpMethod.POST, formData: new Dictionary<string, string>() {{"achievement", url}} ); logs "400 Bad Request" and nothing else. 回答1: First you

Unable to convert classes into dex format build error in Unity 5.3.4f1, when Google Play games plugin & Facebook plugins are added into the project

删除回忆录丶 提交于 2019-12-11 13:35:49
问题 In my game, after importing Google play games plugin and Facebook plugin, I cant build my Unity Project . It gives a build error, Unable to convert classes to dex format. The Unity version is 5.3.4f1. The google play games plugin version is 0.9.32. Facebook plugin version is 7.5.0. The error log that I'm getting is this: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. C:\Program Files\Java\jdk1.8.0_31\bin\java.exe -Xmx2048M -Dcom.android

Facebook SDK for Unity on Android - Trouble about callback from FB.Login

走远了吗. 提交于 2019-12-11 07:49:53
问题 I'm having some problem about login in facebook-unity-sdk on android device. When I login and get callback, them return this FBResult.Text {"is_logged_in":false,"user_id":"","access_token":""} FBResult.Error null and FB.IsLoggedIn is null everytime after login completed I'm using last version of Facebook SDK (4.2.1) and Unity 4.2 On Debug Log Send to Unity OnLoginCompleted({"cancelled":true}) 回答1: These problems are usually caused by two things: Keyhash setup You can set your logcat to filter

Facebook Unity SDK using non-public api on iOS?

喜你入骨 提交于 2019-12-11 01:53:50
问题 I tried doing an iTunes submission of our first game using the facebook sdk, and i get this warning: The app references non-public selectors in Payload/AppName.app/AppName: id, setId: I have confirmed that ripping out the Facebook SDK removes this error on submission. Unfortunately, this kind of error usually results in rejection by Apple. Anybody submit successfully with this warning? Can this be fixed by Facebook to prevent the warning? 回答1: We just put up a version that fixes this problem.

Cannot get the Unity web player to load the Facebook dll

北战南征 提交于 2019-12-10 21:12:12
问题 I'm trying to test my Facebook integration for a FB Canvas game that I'm working on. When I launch the player I see the following message in the console: loading dll: /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll Failed downloading /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll and if I look in the apache logs I see a request for /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll I have the same problem using the 4.3.x version of the Facebook SDK. I'm using Unity editor 4.3 and testing in Chrome on OSX. Am