facebook-unity-sdk

Unity exporting android project with Facebook SDK issue

懵懂的女人 提交于 2019-12-10 17:15:07
问题 I found an issue on exporting a project from Unity3D to Android Studio when Facebook SDK is involved. Currently I'm using Unity 5.4.1f1 and facebook-unity-sdk-7.9.0 . Here the steps to reproduce the issue : Create a Unity project and add Facebook sdk (Import custom package etc) Then configure it from the menu on the top bar under Facebook > Edit settings (it's enough adding the app id ) In build settings select Android platform and edit player prefs adding a bundle id and setting min sdk

FB.Mobile.AppInvite and triggering deferred app link

风格不统一 提交于 2019-12-10 12:18:24
问题 What I want to do: Suppose that on FB-enabled game, A invites B. I want to use deferred deep link (on new installation) to trackback B's installation and launch, then give "invite reward" to A. That is, I must find a way to pass context from A's invite and stays until B's installation, which deferred deep link 'should' do the work. Problem: App link URL specified when calling FB.Mobile.AppInvite on A's side will not reach B on first app launch, neither as deep link or deferred deep link. FB

Error : Cannot find Facebook SDK Version

夙愿已清 提交于 2019-12-08 11:26:08
问题 the SDK 7.x is not working on Unity 5.1.0f3 , i always got the error version not found . does someone have see this error ? 回答1: Actually, it's just a warning. But you can fix it. There are several places where facebook plugin calls FBBuildVersionAttribute.GetVersionAttributeOfType(typeof(AbstractFacebook)); So first, you need to modify FBBuildVersionAttribute to this: // we are going to apply this attribute to Class // instead of Assembly // also make it inheritable for all implementations

Get Facebook Access Token in unity3d Desktop App

て烟熏妆下的殇ゞ 提交于 2019-12-08 02:53:46
问题 I am new in unity3d and i am trying to create an app with social connect for unity3d desktop app.I read some tutorial like unity-and-facebook. My problem is how to get an access token of user.I follow same steps as i read getting-started on facebook. When facebook-unity package import to my new package and change app id from facebook setting. I am getting a default access token and dummy user logedin. Sorry for my English. 回答1: I'm afraid we don't directly support desktop applications at the

Get Facebook Access Token in unity3d Desktop App

六月ゝ 毕业季﹏ 提交于 2019-12-06 14:18:20
I am new in unity3d and i am trying to create an app with social connect for unity3d desktop app.I read some tutorial like unity-and-facebook . My problem is how to get an access token of user.I follow same steps as i read getting-started on facebook. When facebook-unity package import to my new package and change app id from facebook setting. I am getting a default access token and dummy user logedin. Sorry for my English. I'm afraid we don't directly support desktop applications at the moment. If you are testing in the editor we put dummy data in to help with testing, but you must run your

Facebook Unity API - post screenshot with link and description?

蹲街弑〆低调 提交于 2019-12-06 12:02:43
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 = tex.EncodeToPNG(); var wwwForm = new WWWForm(); string picName = "Idioman_" + Time.time + ".png";

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

前提是你 提交于 2019-12-06 04:28:57
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 appcenter does record that you've granted permission to the app). If I asked for multiple permissions, it

How to get user's profile picture with Facebook's Unity SDK?

半世苍凉 提交于 2019-12-06 01:08:08
问题 I'm trying to get the profile pic of the user of the game using this- void MyPictureCallback(FBResult result) // store user profile pic { if (FB.IsLoggedIn) { WWW url = new WWW("http" + "://graph.facebook.com/" + FB.UserId + "/picture"); Texture2D textFb2 = new Texture2D(128, 128, TextureFormat.ARGB32, false); //TextureFormat must be DXT5 url.LoadImageIntoTexture(textFb2); profilePic.renderer.material.mainTexture = textFb2; } But it isn't working. I am getting no errors. 回答1: Jason Pietka's

Error: The prefix “tools” for attribute “tools:overrideLibrary” associated with an element type “uses-sdk” is not bound

空扰寡人 提交于 2019-12-05 16:01:47
问题 I got the following error while build apk file from unity on mac osx sierra. this also build fine before I reboot my macbook, but not now. I've added error details below: Note: I'm using facebook sdk. Error: Error while saving blame file, build will continue Error: The prefix "tools" for attribute "tools:overrideLibrary" associated with an element type "uses-sdk" is not bound. UnityEditor.HostView:OnGUI() and: AndroidSDKToolsException: Unable to merge android manifests. See the Console for

Unity 2017.2.0f3 with Facebook 7.10.1 build error FormatException: Input string was not in the correct format

坚强是说给别人听的谎言 提交于 2019-12-05 02:20:44
问题 I am building a Unity project (targeting Android) under Unity 2017.2.0f3 (64bit MacOS High Sierra) with Facebook's Unity plugin v7.10.1 (released a few days ago), and am seeing this error at BUILD time: FormatException: Input string was not in the correct format System.Int64.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int64.cs:458) System.Convert.ToInt64 (System.String value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System