Android facebook integration with facebook sdk 4.6.0 - android

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!

Related

how to solve problem for Sign in users and call the Microsoft Graph API from an Android application?

we have Implemented Azure Sign-in and Graph API through referring to following tutorial
https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-android
When I run the app in emulator it is authenticated and calling graph API, But When I am running same app in real device it is giving this prompt (attached Image). Nothing happening on click and/or on Continue buttons.
We are not getting any error message as well.
Appreciate your suggessions from community for possible solution.
Regards,
Anant
Real device image

Not getting facebook permission screen in Android App. Using Facebook SDK 4.5

I've been really stuck for several days with this one screen.
When a user taps on "Login with Facebook", the app redirects to Facebook, authenticates if the user is not logged in to Facebook app, and returns a user email and some other details.
From then on, it never asks any permission. It just goes to Facebook and loads back with the data. But it never asks for the above screen. I need to have this screen so that the user knows what details the app is asking for. Can anyone help me out? I'm using Facebook SDK 4.5.
This is my first time using Android and Facebook SDK so any help would be greatly appreciated.
Thank you.

Login With Linkedin Api Issue in Android

If Linkedin app is not installed on an android phone, my app users are getting blank screen on linkedin login. Till two days back, my users could login using Linkedin via the webview, but now they can do so only if the user has LinkedIn app.
(https://i.stack.imgur.com/UkDJV.png)
It is the picture which shows logon with LinkedIn button !When i click on Login with LinkedIn it shows me this blank white screen in web view.](https://i.stack.imgur.com/K1U7g.png)
It might be a problem with their being stopped working.
LinkedIn has deprecated and stopped supporting their old mobile SDKs as per this link, so I've created a lightweight "unofficial" SDK for Android, you can use it from this GitHub repo.
We also use it in our production apps, so it should be working fine. :)

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.

Android Facebook SDK SSO "the page you requested cannot be displayed"

I've been stuck on this very frustrating problem all day and through Google I've found many people with the same problem with no answers that relate to the new Facebook API for Android. I have followed the steps listed here exactly :
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
When I run the sample app on my device I get this:
When I run it on the emulator it works. I understand this to be because of Facebook's SSO implementation. The emulator does not have facebook installed so it signs in for the first time successfully, but the device launches the facebook app and for some reason gives this error and when I travel back, it is as if I am not logged into facebook at all and there is no active session (though I am because when it launches the facebook app I can browse friends, etc.)
I cannot uninstall facebook on my device and even if I could that would be unacceptable for the app users. If possible, I'd like to retain the SSO feature, but somehow make it work!
I have spent all day going back and forth with my Hash Keys, and generated them through my device+code and with the keytool and they match so the problem is not related to that. Besides, the sample app runs on the emulator which surely means its an SSO problem. Thanks in advance.
After 8 hours of scanning through my code and the facebook docs, I simply decided to update my facebook app on my tablet ( I never use it and so never bothered to update it ) and now it all works.
I guess the Facebook app on my tablet was pre-SSO of Facebook on Android, but my created app was expecting it to be supported and giving the error.
Just to be a bit more clear, if you are either running on your device or on the simulator, make sure you have the latest Facebook APK installed. Facebook changed their permissions a while ago, and you may have to manually go to the Google Play store in order to download the updated version of Facebook (it may not auto-update for you given the permission changes).
Disabling Facebook did the trick for me. It forces the app to launch the browser and surf to Facebook that way

Categories

Resources