Invite facebook friend to play game

Now I want to send request to my facebook friend to play game with me.
I have read this link content: http://doc.exitgames.com/en/realtime/current/tutorials/custom-auth-facebook-javascript

But didn't found any thing much useful for android application.
Basically I want to ask that is Photon provide support for Facebook integration?

I have also gone through to facebook unity project mention in following link
https://github.com/fbsamples/friendsmash-unity

I want help from your side that what support I got from photon server?

Comments

  • The custom authentication with Facebook described in that article is also about how to setup the Photon Cloud. This part is the same, no matter what the client is. Including Android.

    There is another doc about Custom Auth for Unity:
    http://doc.exitgames.com/en/pun/current ... entication

    You need to use the Facebook plugin for Unity to find your friends and send them an invitation. The important thing to send is the room name that both players should join (asap). How you message friends and handle messages in FB is not part of Photon, so you have to refer to their API and doc.
  • Thanks for all your information. I have read your provided link.
    I don't able to understand concept of Application Deployment .

    Based on my following requirements, I have to use this concept or not.

    Basically for my game, I want functionality like player can send request to their friends.
    At present I can able to send notification to them but when they click on it nothing happen.
    So from this stage I can't able to move forward.
    I want player to be move towards either Play Store or if he installed game on his device then it start directly.

    But how to do it I don't know. Please give some help in this. Provide some guidance about how PUN become useful in facebook integration?
  • You will want to look into features of Push Notifications for Android and or iOS.
    Actually, those Push Notifications are not a Photon topic and we can't help because we hardly look into that topic ourselves.

    As long as you don't do those messages in Photon, you will have to look up another place to find help. Sorry!
  • @Tobias, hey I have solved this problem regarding transfer response towards game based on notification click.

    Here I attached link for it so that it become useful to other members.
    http://answers.unity3d.com/questions/788839/transfer-request-to-application-on-facebook.html

    I want some more help from photon team. At present in game any player can send request to his friend and based on request friend move on to this game.
    Further I want to implement functionality that those friends played game in same room. At present there is no control over room connection between friends they are connected randomly based on algorithm written.

    Using following code what functionality I got from photon?
    void OnLoggedIn()
    {
        PhotonNetwork.AuthValues = new AuthenticationValues();
        PhotonNetwork.AuthValues.AuthType = CustomAuthenticationType.Facebook;
        PhotonNetwork.AuthValues.SetAuthParameters(FB.UserId, FB.AccessToken);
        PhotonNetwork.ConnectUsingSettings("1.0");
    }
    

    How to create new room for all connected players? I got confused around this question.
    Please give some information as best you have because from other sources I can't able to find useful related to this topic.
  • Using following code what functionality I got from photon?
    Depending on the authentication result, the client will be either successfully authenticated or rejected.
    Follow http://doc.exitgames.com/en/turnbased/c ... entication for more details.
    After successful connection client can bind Facebook id and Photon Player.ID to use Facebook features in game (e.g. set player name to facebook's user name).
    How to create new room for all connected players?
    You need name for the room. Each client should create/join to that room. Either use predefined single room name or let 1st client create the room and send invitations with room name to others.