Facebook Logins on a Pserver

Results 1 to 14 of 14
  1. #1
    A Lost Marine gago117 is offline
    True MemberRank
    Feb 2010 Join Date
    PhilippinesLocation
    421Posts

    Facebook Logins on a Pserver

    Title says.


    Also if there is a pserver implementing such already, can I see the link?


    Thanks!


  2. #2
    LittleGiant MUnoob is offline
    True MemberRank
    Apr 2011 Join Date
    482Posts

    Re: Facebook Logins on a Pserver

    Not sure what you mean. Doesn't facebooks API let you sign in through them?

    Or are you meaning signing into the game server using facebook logins? If so I'm not sure thats possible through their API

  3. #3
    Programmer TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,268Posts

    Re: Facebook Logins on a Pserver

    https://developers.facebook.com/docs...d-a-login-flow

    Please elaborate on your question per section rule 5, thanks.

  4. #4
    A Lost Marine gago117 is offline
    True MemberRank
    Feb 2010 Join Date
    PhilippinesLocation
    421Posts

    Re: Facebook Logins on a Pserver

    I am thinking of a Facebook Login function ingame. As of now the only proposal is only Facebook Authentication which is much easier for newbies instead of verifying through an email account. I would like to know also if there are already private servers already implementing this system.


    I plan to implement this on GunZ but my developer says to have a Facebook login, you need the Chromium source and plugins for it to be implemented.

  5. #5
    Deep thoughts Facebook Logins on a Pserver Joopie is offline
    Alpha MaleRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,669Posts

    Re: Facebook Logins on a Pserver

    Quote Originally Posted by gago117 View Post
    I plan to implement this on GunZ but my developer says to have a Facebook login, you need the Chromium source and plugins for it to be implemented.


    Anyway, it all depends on how you want to implement it. Using Facebook on your website is ofcouse way easier to implement than for example in the source of GunZ. I don't know how that works but one way you can do it is: use the Facebook API to let users login on your website and if they don't have a GunZ account yet, create one for them (choose username and passwords etc). All you have to do is link their Facebook ID to their account.

  6. #6
    Makrotek LLC Solutions master_unknown is offline
    True MemberRank
    Oct 2004 Join Date
    HellLocation
    962Posts

    Re: Facebook Logins on a Pserver

    Quote Originally Posted by gago117 View Post
    I am thinking of a Facebook Login function ingame. As of now the only proposal is only Facebook Authentication which is much easier for newbies instead of verifying through an email account. I would like to know also if there are already private servers already implementing this system.


    I plan to implement this on GunZ but my developer says to have a Facebook login, you need the Chromium source and plugins for it to be implemented.
    https://origin.mx/#LogIn
    ]In need of Awesome Custom launcher for your server?
    Click here for details
    We create Launchers for Tantra, Cabal, MU, Black Desert & more!

  7. #7
    A Lost Marine gago117 is offline
    True MemberRank
    Feb 2010 Join Date
    PhilippinesLocation
    421Posts

    Re: Facebook Logins on a Pserver

    Quote Originally Posted by master_unknown View Post
    Have you tried ingame login using Facebook accounts which is more than the Facebook account connect?

  8. #8
    Programmer TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,268Posts

    Re: Facebook Logins on a Pserver

    Quote Originally Posted by Joopie View Post
    Anyway, it all depends on how you want to implement it. Using Facebook on your website is ofcouse way easier to implement than for example in the source of GunZ. I don't know how that works but one way you can do it is: use the Facebook API to let users login on your website and if they don't have a GunZ account yet, create one for them (choose username and passwords etc). All you have to do is link their Facebook ID to their account.
    +1 to this. Let them register with Facebook, or let them link a preexisting account to Facebook. Store facebook token alongside the account in your pserver's database, and whenever someone logs in again with Facebook, you can consider it the same as a normal login to your pserver.

    I see the thought pattern behind thinking you may need Chromium for this. Unless I missed something, it looks like the only way for "Facebook login" to work is by literally directing the user to the appropriate facebook.com OAuth page. This is not uncommon for OAuth logins - Facebook wants to consume the user's facebook username/password; they definitely don't want to receive a user's Facebook user/pass from your app (they don't want your app to know about a Facebook user's user/pass).

    You can allow Facebook login by opening the appropriate facebook.com OAuth page in the user's default browser from your game client or launcher. When they login on Facebook, you can have a web server set up on your end (for Facebook's redirect URI) that waits for Facebook to ping it, letting you know that a specific facebook user wants to log in to your server. Then your game client or launcher can automatically log them in to the appropriate account (i.e. the account on your pserver that the Facebook user is linked to).

    The most unfortunate part of the user experience is requiring the user to login to Facebook from facebook.com. You could try to redirect them back to a URL that opens the launcher for them, or you could try to redirect them to a URL that just tells them to check their launcher (which should auto log them in after receiving the user's Facebook oauth info).

    The hardest part may be automatically logging them in once they login via the facebook.com oauth link. You need something in your game client/launcher listening for a message from your web server (the redirect URI) that tells it to log in with X account, and you need to do so securely.

  9. #9
    A Lost Marine gago117 is offline
    True MemberRank
    Feb 2010 Join Date
    PhilippinesLocation
    421Posts

    Re: Facebook Logins on a Pserver

    One question also, does Facebook have a thing against private servers? Since private servers by definition is an unauthorized emulation of the original game. They could disable their APIs we use for the login purposes.

  10. #10
    Programmer TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,268Posts

    Re: Facebook Logins on a Pserver

    I'd be surprised if they had anything against private servers, especially since they're not illegal, just potential copyright or contract violations. That being said, I'm definitely not certain, and your question, if you want it earnestly answered, is best answered by a lawyer who is familiar with the Facebook API terms of use/service.

  11. #11
    A Lost Marine gago117 is offline
    True MemberRank
    Feb 2010 Join Date
    PhilippinesLocation
    421Posts

    Re: Facebook Logins on a Pserver

    Everything is clear now. Thanks for your answers. :)

  12. #12
    Makrotek LLC Solutions master_unknown is offline
    True MemberRank
    Oct 2004 Join Date
    HellLocation
    962Posts

    Re: Facebook Logins on a Pserver

    Quote Originally Posted by gago117 View Post
    Everything is clear now. Thanks for your answers. :)
    How did you solve the issue, can I see a demo?
    ]In need of Awesome Custom launcher for your server?
    Click here for details
    We create Launchers for Tantra, Cabal, MU, Black Desert & more!

  13. #13
    Programmer cyberinferno is offline
    True MemberRank
    Jun 2009 Join Date
    BangaloreLocation
    596Posts

    Re: Facebook Logins on a Pserver

    Implementing FB login should be easy as FB offers SDKs in all major programming languages.

    After getting the token from FB, use the token to fetch email address of the user. If the email address is already registered you just have to log the player in. If it's new email address then tell the player to enter username and password that he/she will be using to play your server!

  14. #14
    Makrotek LLC Solutions master_unknown is offline
    True MemberRank
    Oct 2004 Join Date
    HellLocation
    962Posts

    Re: Facebook Logins on a Pserver

    kinda looking for something like this.
    Code:
    https://origin.mx/
    Where the page just scrapes your posts from your facebook page.
    Therefore, eliminating cpanel websites.
    Have you looked at this and has implemented the feature?
    ]In need of Awesome Custom launcher for your server?
    Click here for details
    We create Launchers for Tantra, Cabal, MU, Black Desert & more!



Advertisement