Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by blitzen · Feb 05, 2014 at 04:53 AM · webplayerfacebooklogin

Logging in with Facebook SDK from the Web Player

I'm trying the Examples/InteractiveConsole scene that comes with the Facebook Unity SDK (Version 131121) on Unity version 4.3.2f1. My goal is to figure out how to invoke a facebook login from the web build and retrieve the access_token.

When running it in the editor, upon hitting FB.Init, FB.isLoggedIn becomes true automatically, even before I've logged in (in fact, even without entering the App ID from the app I created on Facebook in the "Facebook->Edit Settings" inspector) and trying to run FB.Login just get the message "User is already logged in. You don't need to call this again". The UserID and Access Token are all blank.

I then tried building it for the Web (and after having to fix the url of the canvas app DLL to get it to download), hitting FB.Init update the message at the top to "Status: FB.Init() called with 123456781234567", but doesn't get any further. UserID and Access Token are once again blank.

Know what I need to do? The web player console log looks unremarkable:

140204 23:30:46 ------------------------------------------------------------
140204 23:30:46 Instance starting, version 4.3.2f1_0517a5ae8669, UNITY_WEB_ENABLE_AUTODOWNLOAD: 1, GetDisableAutoUpdates(): 0
140204 23:30:46 Datafile file:///C:/Users/Robert/Documents/FacebookTest/web/web.unity3d
web: player version 4.3.4f1
web: load mono
Mono path[0] = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/player/Release3.x.x/Data/lib'
Mono path[1] = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/mono/Release3.x.x/Data/lib'
Mono config path = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/mono/Release3.x.x/Data/etc'
web: start, src=web.unity3d abs=file:///C:/Users/Robert/Documents/FacebookTest/web/web.unity3d flags=0x0
web: sucessfully initialized
140204 23:30:47 loader: start ok
140204 23:30:47 Times: download 0.1 load 1.2
Loading webdata version: 4.3.2f1
Initialize engine version: 4.3.4f1 (e444f76e01cd)
GfxDevice: creating device client; threaded=0
Direct3D:
    Version:  Direct3D 9.0c [igdumdim32.dll 10.18.10.3277]
    Renderer: Intel(R) HD Graphics 4600
    Vendor:   Intel
    VRAM:     1792 MB (via DXGI)
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=1 INTZ=1 RAWZ=0 NULL=1 RESZ=1 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Assembly-CSharp.dll into Unity Child Domain
Non platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\IFacebook.dll (this message is harmless)
Loading C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\IFacebook.dll into Unity Child Domain
- Completed reload, in  0.041 seconds
 Initializing input.

XInput1_3.dll not found. Input initialized.

desktop: 1600x900 60Hz; virtual: 1600x900 at 0,0 Using SDK 4.3.6, Build 131121.17562b74012d24a

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)

Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless) Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Release3.x.x\Data\lib\Mono.Security.dll (this message is harmless) Non platform assembly: data-12DE0018 (this message is harmless)

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image wraxul · Mar 25, 2014 at 08:23 PM 0
Share

Have you been able to get this working? I'm having the same problem. If you've found a solution, would you $$anonymous$$d sharing it?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by melodyhoney · Feb 26, 2015 at 08:06 AM

Anyway, when encounter computer errors related to xinput1_3, you can re-install DirectX or update it to the latest version to have a try. Xinput1_3.dll is a dynamic link library that used by many programs and games. It is part of DirectX and supports many functions of computer games.

Good luck.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Facebook SDK V6.0 second attampt to Login crash - Android 1 Answer

Facebook SDK not loading 0 Answers

Facebook SDK login problem 1 Answer

Login to Facebook 1 Answer

Facebook SDK v4.2.4 - Android - Login not working 11 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges