When I invite friends from my application, they got a notification on Facebook saying I invited them to my game. However, when they click on the notification they got a error saying: "The requested page can not be displayed right now...". Could the reason be that the application is not published on google play or app store yet? If not, any suggestions?
The problem will be in your application registration on Facebook developer site. The invite button should show a notification to the user, this notification should be linked with your application URL on Google PlayStore. The problem will be in this part. Make sure you are typing your app link correctly
Here is a useful link for Facebook registration API
In my situation there was problem with facebook app settings.
I had only android application registered on facebook and "Single Sign On" filed was off.
Then I changed it to "Yes" value. Problem solved.
Marked area with red in image shows that field.
It has to be set to "Yes" if you want recieper to open when cliking on requets notifation on android device.
Related
I am implementing facebook functionality on my Android game. Registered app on facebook. Everything works normally.
But when I send request open GameRequest dialog, select friends and send. On request I get success and request id. But on recipient side does not shows up any request or notification (On facebook desktop).
What I do wrong?
I implemented code as following. Has created requestDialog on start as document says.
GameRequestContent content = new GameRequestContent.Builder().
setTitle("Title").
setMessage("Content").
build();
requestDialog.show(content);
I want to ask to own question.
As I was explaining above everything was implemented rightly.
Facebook Game Request doc says:
"On the Facebook desktop site, requests appear as a beeper pop-up in the lower left of the screen as well as in the notifications jewel. On mobile platforms requests will surface within the list of notifications in the Facebook App."
But nowhere it metioned that if you have only android app configured in Facebook it will show notifaction only on Android Facebook app not in Facebook destkop site.
But when I looked notifiaction bar on Facebbok app then saw that game request does appear Facebook App.
Consider this not described future when developing.
I reported this issue on Facebook as Bug (report link) and got positive feedback saying:
You are right, that could definitely be improved. We do specify that:
Invites that are sent by the player will appear on whatever
combination of platforms supported by your game.
but only in the section "Invitable Friends API". Not very easy to
find.
I've assigned this bug to the documentation team to state it more
clearly.
Thanks for reporting this, Domenico
Updated:
After days they solved problem added following sentences:
Your implementation of requests should therefore be platform-agnostic
and should provide a consistent user experience, regardless of
platform. However, invites that are sent by the player will appear on
whatever combination of platforms supported by your game.
Related other problem
Beside I want to share additional information. You can face with this problem too.
To let recipinet to open android application clicking on game request notifiaction - You have to set "Yes" option on Android application setting in facebook app as shown in image below. (This is under Android settings in facebook app).
Otherwise you will see The requested page can not be displayed right now ...
I've integrated the Facebook SDK for android for an app. When a user receives the app invite there's a big "Install Now" button that will link them to the google play store. The problem is even if the user already has the app installed if they open up the Facebook invite the button still says "Install Now" instead of "Open" or "Play". The iOS version does this. The reason why this is necessary is because otherwise the app has no way of receiving the custom app link sent in the invite. Am I missing something? Or this a bug in Facebook?
I've redacted a bunch of stuff, but this is the button that I think should be changing.
It looks like the app link even works if the user goes to the app through the Google Play store, awesome!
I need to implement Facebook Requests logic to my app. It should work this way:
1. user sends request to his friends via Facebook dialog
2. when any of them tap the notification inside Facebook app Notifications tab it navigates him to the app with Intent containing any parameters. If the app isnt installed - the Play Market page of the app is opened.
I have already implemented the code, but still when I tap on the notification - nothing happens.
I am pretty sure the problem is with app's settings in Facebook so-called App Dashboard. But the documentation is very hard to understand, at some places there are out-of-date screenshots and names...
Help please to set up the app.
When I send an invite request from my app to facebook friend it gets received to the friend. But when the friend taps on the request from notification jewel in facebook android app it always opens a facebook url( This is canvas url). It never redirects to play store. The behaviours are as follows:-
When app is installed and the request is tapped it opens the app. (This is expected behaviour and is happening).
When app is not installed and the request is tapped it opens the canvas url.(The expected behaviour should be to open the play store of the app).
I have tried all combinations in app settings on facebook. But I am unable to get the expected behaviour.
In the request dialogue I set, title, message. Am I missing something in the request parameters or am I missing something in the app settings which might have been added recently?
I solved this after googling. We need to add mobile site url as a platform on facebook app settings. This would enable redirection to google play store. This might be an issue in facebook.
I'm trying to use the send-requests feature of the android sdk:
https://developers.facebook.com/docs/android/send-requests/
I've copy and pasted their sample from the link above. It pops up a friend picker dialog, but it does not have a preview message like in their screenshot, even though the 'message' attribute is set:
params.putString("message", "hi hi hi");
I put a log statement in the facebook code to see what url the webview is loading, I do see the param in there:
https://m.facebook.com/dialog/apprequests
?access_token=xxx
&type=user_agent
&redirect_uri=fbconnect%3A%2F%2Fsuccess
&message=hi%20hi%20hi
&display=touch
but no message preview. More problematic is that after I send the message off to a few of my friends, they never receive the message.
Anyone else run into this?
This question provided some ideas, but I've already set the android app settings in the facebook developer settings:
Facebook App request not sending to Facebook friends through Facebook Android SDK
My only guesses at this point:
I haven't submitted the facebook app to the facebook app center for review yet.
The android app is not published on google play yet.
Thanks
Ugh, this was because my facebook project was not in a published state (I'm developing it now), and the user I was trying to send the messages to was not marked as a developer or tester of my project.
What an epic waste of time - would be nice if the facebook api could return a simple error message giving you a hint.