facebook-unity-sdk

Facebook Unity SDK android barfs when project connected to Asset Server

纵饮孤独 提交于 2019-12-24 02:01:33
问题 Tricky little issue. A test project with FB plugin worked fine, my project gave me below error. Turns out when i connected FB test project to asset server, and the .meta files got created for each folder, it would barf also. Any way to tell compiler to skip .meta files? Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. /Users/me/android-sdk-macosx/platform-tools/aapt package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml

Facebook Unity SDK, how to force login using webview instead of FB App

烂漫一生 提交于 2019-12-24 01:18:27
问题 By default, the FB Unity SDK will try to use the FB App to login if the user has it installed. Otherwise, it will fall back to using a HTML based popup to let the user login. However the FB App only works with API 1.0 ("basic_info" permission). Will fail with "Invalid permissions" on "public_profile". The webview dialog only works with API 2.0 ("public_profile" permission). Will fail with "Invalid Scope: basic_info. Use public_profile". The best fix would be to force the sdk to ignore the FB

400 Bad Request When Publishing a user's score through Facebook SDK for Unity

倾然丶 夕夏残阳落幕 提交于 2019-12-24 00:56:44
问题 I am using Unity3D 4.3.4 Editor and Facebook SDK for Unity 5.1 which allows for testing inside the Editor. I am able to suceesfully post screenshots of my game, but I am struggling trying to post a score. I based my code on this two samples: Facebook Graph API and Facebook SDK Unity Tutorial . In the callback method when I inspect the result object, I get: 400 Bad Request If I change the method from POST to GET, I don't get the error, but the score is not posted either. But at least I know

API Error Code 1383146 in Facebook Canvas API for Unity while making payment

自古美人都是妖i 提交于 2019-12-23 09:15:38
问题 I have implemented payments in my Unity app and have defined products in HTML form in my server, and have crawled them with FB's debug tool. The products are identical to Facebook's payments example apart from pricing and naming, as well as the photo link. Yet, when I run FB.Canvas.Buy after deploying the app to Canvas, I get the following error: An error occurred. Please try again later. API Error Code: 1383146 API Error Description: invalid og type. Expected og:product, got website This

Facebook Unity API - post screenshot with link and description?

房东的猫 提交于 2019-12-22 18:38:19
问题 I am trying to get my app (iOS, Android) to allow users to post a screenshot to facebook with a link and a description. I am able to use FB.API() to upload screenshots from my app to a user's album that Facebook autogenerated for my app, via: int width = Screen.width; int height = Screen.height; Texture2D tex = new Texture2D(width, height, TextureFormat.RGB24, false); // Read screen contents into the texture tex.ReadPixels(new Rect(0, 0, width, height), 0, 0); tex.Apply(); byte[] screenshot =

Getting Text from IResult Facebook SDK, 7.2.0

杀马特。学长 韩版系。学妹 提交于 2019-12-22 12:44:31
问题 I am trying to get the player's username and then display it. Recently, there was a breaking changes; IResult replacement for FBResult. I was able to return a texture from the IGraphResult instead of FBResult, to display the profile picture, so I expect that the Text would be available as well but no. So my issue is, where can I return the Text from? Do I have to add anything to the IGraphResult? Here is the code, void DealWithUserName(FBResult result) { if(result.Error != null) { Debug.Log (

Facebook SDK for Unity Android - Incorrect manifest file being generated, can't login

无人久伴 提交于 2019-12-22 11:25:04
问题 Ok, this has taken over a week, but I finally found the cause of why I can't seem to log in to facebook using the Facebook SDK (v4.3.4) with Unity3d (v4.3) on my android devices. Now to figure out how to fix it... ? Symptom: I run the application on the android device. When I press the login button, it opens the permissions prompt from facebook. Then... nothing. The login doesn't complete, and looking through the logs, its clear that the LoginCallback isn't being called. (Although Facebook

Conflict with activity tags on android manifest: Facebook and Google Play Games in Unity3d

不打扰是莪最后的温柔 提交于 2019-12-17 21:14:40
问题 Both Facebook and Google Play Games plugins require that I use android.intent.action.MAIN and android.intent.action.LAUNCHER in the Android Manifest. But one cancels the other. I'm new to mobile development. Is there any workaround? What can I be doing wrong? Manifest: <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false" android:name="com.soomla.store.SoomlaApp"> <intent-filter> <action android:name="android.intent.action.MAIN" />

Facebook SDK for Unity 5.0.2 Beta doesn't work on Android Device

笑着哭i 提交于 2019-12-13 18:43:45
问题 Unity: 4.3.1 Device:Samsung I9300 Facebook SDK for Unity: 5.0.2 Beta When I use Facebook SDK for Unity 4.3.6, this works well. When I use 5.0.2 Beta, it does not work. When I run FB.Init on device, it shows The Facebook Dll : not Loaded Facebook settings are the same as in 4.3.6, but I changed the Class Name com.facebook.unity.FBUnityPlayerActivity to com.facebook.unity.FBUnityDeepLinkingActivity in the facebook.com. But this doesn't work either. <?xml version="1.0" encoding="utf-8"?>

Unity Beta SDK 5.0.3 - Problems logging in on Android device

。_饼干妹妹 提交于 2019-12-13 06:21:34
问题 I am having problems with logging in on my test android device. I am calling: FB.Login("", AfterLogin); I get no error in the response but still the access token is empty (i've noticed that on subsequent requests). It is important to say that it works fine in the editor (by specifying the access token) and that i didn't test it on any other platform. I have done everything according to the Facebook Unity SDK guide. Any suggestions? Thanks. 回答1: After I have struggled with this login problem