Why facebook game request does not showing up on recipient profile? - android

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 ...

Related

Login with Facebook option trigger suggest to download an app

Yesterday I logged in to Airbnb with my Facebook account on my OSX. Shortly later I got a notification both on my iPhone and computer saying
"Airbnb is available to install on your iPhone"
My question is, does anyone here know how this was done? Is this a feature available to anyone who creates Facebook login? Any advice on how this was done is well appreciated.
Sincerely
Axel
I bet the notification is sent to you by Airbnb, right? If so, it's pretty easy to do. You give your facebook account information to Airbnb by login with facebook in there webpage. Then they just send a graph api request to facebook with your authorization access token, and you get an notification. For details you can refer to doc here: https://developers.facebook.com/docs/games/notifications
I found out what I was talking about. Facebook is adding a new feature which ask users if they want to get a link to the mobile app.
This is in Beta right now but you will automatically eligible for the feature if:
You have integrated the new Facebook Login on your website. You must be using at least version 2.0 of the Graph API and Login Dialog. Send to Mobile is not available for apps which invoke the Login dialog using Graph API v1.0.
You have integrated Facebook Login into your iOS or Android app. The "Single Sign On" switch within iOS and Android section of your app's dashboard must be set to "Yes"
Added your iOS App Store ID and/or the Android package name under which your app is listed in Google Play to your Facebook app's dashboard.
https://developers.facebook.com/docs/facebook-login/send-to-mobile

What happens if you deep-link on iOS or Android into an app you don't have installed?

I am quite new to mobile development. At the moment I am trying to run a mobile app (iOS and Android) advertising campaign on Adwords, iAd, Twitter and Facebook.
I would like my ads to deep-link into a specific section of the app (closest to a check out page).
Could a more seasoned developer explain what will happen in the following scenarios:
Person using iOS sees an ad on Google or Apple's ad network, or Facebook, or Twitter, and then clicks on the ad. The ad has a deep-link which tries to open the app and send the user to a particular screen. However, the user doesn't have the app. Question 1: What happens? Question 2: If there is an error, then how can this sort of user journey be fixed?
Person using ANDROID sees an ad on Google, or Facebook, or Twitter, and then clicks on the ad. The ad has a deep-link which tries to open the app and send the user to a particular screen. However, the user doesn't have the app. Question 1: What happens? Question 2: If there is an error, then how can this sort of user journey be fixed?
Thank you very much!
~Aivoric
If you want to deeplink to a specific piece of content inside an app from an advertisement or any other link on the internet then you need to look at contextual deeplinking.
Without contextual deeplinking...
In both cases, if the user previously had the app installed (but removed it) then the user will likely experience a popup error. I'm very confident of this happening in iOS -- a Safari "error" message gets displayed. There's no native fix with iOS that I'm aware of. You'll need to sync up with a 3rd party deeplinking standard that can handle platform detection and routing.
Contextual deeplinking would be one way to tackle all these issues because it would automatically detect if the app is or was previously installed. Then, it could drop information about the user context - what advertisement they came from along with any other deep link data - and carry this information into the app to direct the user to the deeplinked location.

Facebook unity sdk: is it possible to send friend invites/app requests to non app users?

I'm working with the official facebook sdk and example scene for unity and am sending app requests using : FB.AppRequest() which returns a list of friends to send invites to.
However no matter what I try, I only get a list of friends associated with the app and cannot see any other friends who haven't played the app.
I have even tried setting the 'app_non_user' filter, but this makes no difference.
I have read on the Invitable_Friends api, but am not sure how this would be implemented in the unity sdk.
Any advice would be much appreciated. Thanks
Your app must be approved by Facebook to get people's friends lists beyond people using the app. Look in the developers.facebook.com section to find how to do this. I haven't done this, but a game I worked on needed to do this.
Getting approved involves sending your app and it goes through an approval process.
Here's the relevant bit:
https://developers.facebook.com/docs/apps/faq#invite_to_app
"If your app is a game and has a presence on Facebook Canvas:
You can use the requests Dialog and set filters=app_non_users to filter the dialog to only show people who don't use the app."

Facebook request integration on Android

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.

Facebook android sdk - send requests not working?

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.

Categories

Resources