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 moment. If you are testing in the editor we put dummy data in to help with testing, but you must run your app on apps.facebook.com/, or run it on ios or android.




回答2:


I'm studying this solution recently, I Got a solution form this page

http://www.ifc0nfig.com/accessing-facebook-unity-game-2/

The addition condition is that you may have to setup a webpage to parse the authorize code. Then your desktop app can get the code form the webpage you setup.



来源:https://stackoverflow.com/questions/18670006/get-facebook-access-token-in-unity3d-desktop-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!