Invite friends to play games on facebook

2019-09-17 06:18发布

I want to send request to play game with me to my FaceBook friends. For this purpose, I have studied following facebook sample application also read complete facebook documentation from their site.

Friend Smash Unity

To use this sample code, I have created application in facebook account. Now at this stage I can able to send facebook game request to friends and they receive it successfully but when they click on it, they didn't move to either Google Play Store or same installed application.

I think, I didn't specified play store link in facebook account for this app also currently game is in development phase.

I want your help in doing this. If you want any more detail then I will provide it.

1条回答
forever°为你锁心
2楼-- · 2019-09-17 07:13

I have found solution for this problem after reading following tutorial : Android Games Tutorial

Basically for my facebook application, I have not enabled Single Sign On and Deep Linking toggle buttons.

I have found following content on tutorial and get idea about my mistake.

Ensure you enable both 'Facebook Login' and 'Deep Linking'. Enabling 'Facebook Login' ensures that when users click on a request, bookmark, or search result in the Facebook for Android app, it will attempt to open up the native Friend Smash app if it is installed (or take the user to Google Play to download the game if it isn't installed). Likewise, enabling 'Deep Linking' ensures the native Friend Smash app opens when a Feed story is clicked in the Facebook for Android app.

Now using notification, I can able to move on play sore or installed application. I hope this help to other members also.

查看更多
登录 后发表回答