Facebook in editor access token auto paste

Hello. I was wondering if there is a way to paste the facebook access token for the login in editor automatically in the text field or to even send login with that specific token without copy paste. When I start testing functionality it takes some time to always copy and paste the code. It would be a lot easier to login right away. Thank you for your help!

2 Answers

2

It depends on which version of FB SDK you are using, If you are using Fb SDK < 7.8, the you can modify MockLoginDialog to save the token in player prefs & use the same every time you launch.

If you are using the latest version(7.9 as of now), then you have to write some code using reflection to fake it.

Thanks, for the reply, it's what I was thinking, doing it by code. But I thought maybe Unity was able to manage it by himself. Maybe next version :)

Like Altaf-Navalur said. It can be done with reflection.

Put this after FB login: unity_fb_auto_paste_access_token · GitHub

Unity does handle it automatically. If you don't add a physics material to change the behaviour it defaults to a [perfect inelastic collision response][1]. What you want is an [elastic collision][2] and therefore you have to specify the physical properties. This won't change in the "next version". [1]: https://en.wikipedia.org/wiki/Collision#Perfectly_inelastic_collision [2]: https://en.wikipedia.org/wiki/Elastic_collision