简体   繁体   中英

Integrating FB login to unity web player game

I integrated Facebook SDK with unity to allow logging via Facebook it worked well in unity editor check here http://i.imgur.com/YipbIXA.png

void Start()
{
     FB.Init(FBINIDONE);
}
void FBINIDONE()
{
     string[] perms = { "public_profile", "email", "user_friends" };
     FB.LogInWithReadPermissions(perms,LognDone);
}

but after building the game - the login did not work

1-locally -> did not work

2-online host -> did not work

3-Facebook canvas -> did not work

I googled too much , any other help ?

Not sure if this will help, but alot of the tutorials or step by step guides I found were outdated and would have errors like this if you tried them. I think this updated one might help if you have not already tried it

Tutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM