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.
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 ...
After successfully login into the facebook, I am getting the message as shown in the screen shot.
Please help me regarding this.
I was getting the same problem when i was testing on a real device using different facebook users.
Then i tried on the emulator (on the same computer i created the hashkey) and
used the same facebook user i created the app ID, the problem disappeared.
I think facebook blocks us when we user anothe FB user or another PC and this "Helpful" message pops up!
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
I am using ParseFacebookUtils to provide log in feature in my Android Application. I have successfully integrated Facebook and Parse SDK's. I do not want to make the application created on Facebook live to public yet, because it is still under development.
ISSUE:
I am unable to Login to the app when I provide any Facebook Log in credentials EXCEPT for the application administrator's credentials. If I provide any other credentials, I get the following error shown right after Facebook Log in Screen:
App not setup: the developers of this app have not set up this app properly for Facebook .
How can I enable many users to log in to the app without assigning them any role through the Facebook dashboard?
check Hemang answer here, it well explained.You need provide valid email address and make the app available to general public on facebook developer page though it is in testing mode.
Solution 1
Check your keystore is proper.Verify it.
Solution 2
what type of permissions you requested. If some permissions needed to be approved then you have to upload the apk and get approved.
Solution 3
Try to use SimpleFacebook Library. Its quite simple.
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.