I have implemented Facebook Login using OAuth 2.0 in my xamarin.forms application.But when I try to navigate to facebook page it gives following error:
You are not logged in: You are not logged in.Please log in and try again.
It works fine with android but not working with ios.
I have searched it but didn't get working solution.
I got the solution:
Redirect URL should be same ,when you request for Facebook login and in Facebook settings(Valid OAuth Redirect URI's).
Thank you.
If you intend is testing the app in a staging environment, leave the iPhone Store ID field blank and it will allow you to save the iOS platform and test.
Related
following the microsoft examples as documented here:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/authentication/azure-cosmosdb-auth
Everything is fine up to the point where I run the xamarin forms app to log in using facebook to get a token.
The error from the emulator when I try to login is this:
For your account security, logging in to Facebook from an embedded browser is disabled. To continue, download and log in to Facebook app on your device and try again.
I have tried downloading the app on the emulator, but that makes no difference, my facebook app is in development state but even then it should at least get me to the login page and allow using a test user.
It seems that facebook stopped supporting android login using embedded browsers from 5 October 2021. See here:
https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/
Would it be possible to please update the sample with either b2c or with an alternate method or details of how to get facebook auth working again?
If anyone have examples that someone new to these concepts could follow that would be great.
Thanks in advance!
I have a MVC5 application with external login. When I use Facebook login, after I put in my login information into facebook login page, facebook fails to direct me back to my application.
I got a white page with the following URL in Chrome's URL bar:
https://www.facebook.com/dialog/oauth?response_type=code&client_id=632877723495196&redirect_uri=http%3A%2F%2Flocalhost%2FMPOS%2Fsignin-facebook&scope=email&state=l2oJwWdkbRsgZHyr6-5lL9ZTZc-eMbRBkH73L-h1ZN_MWvWriNeEdCxuNspi4QptZAna60SQIJX4NB5AItzP6NxpDCz10m48JInWUfvQGWkgFgZhZNFIaTz6ju-kEQ-RyiObgiMOKvBougeeaSHD7CAzTrvc1Gj6XdGgGbUgyrM9d1KZUEGbqh_MdyBPg4wTFbQEiui-2GzvcIvhOVtTRC12NnhgnVyLCrrKEDFaWdU
If I use IE, I got "The website cannot display the page" error page with the following URL on the borwser's URL bar:
https://www.facebook.com/login.php?login_attempt=1&next=https%3A%2F%2Fwww.facebook.com%2Fv2.1%2Fdialog%2Foauth%3Fredirect_uri%3Dhttp%253A%252F%252Flocalhost%252FMPOS%252Fsignin-facebook%26state%3DWbWcYquZJnjvo8Db42l6goqpMUrioHL6HBVIUMu74QvqMuAjNzWizophJhNpf3NHCbw1-Dw1tsdgmv2h1f0ct1zcLJ_jlSXQ3ImCHVN_PXRkRedVB3gjTQb59-tbxPKxJQTuNhPvOKLq6aBjakP_fJDw5zXKZ55LrRzHVzEQ39Qff7WXsNJpke2BTHILHLI0I5jcWiXEgE-HeH7La19ttaL9LhrcyXP4DBiWaXuUNZc%26scope%3Demail%26response_type%3Dcode%26client_id%3D632877723495196%26ret%3Dlogin
Anyone has an answer to this problem? Thanks!
Thanks Nathan, clear cache on browser didn't help. I tried to clear cache/cookies on both IE and Chrome several times before I post the question.
The weird thing is that if I create an app under my personal facebook account and use the FacebookAppID/FacebookAppSecret for my app, the external login works fine. That's how I did all my testing.
But when I try to deploy the website I want to create the app under company's facebook account. I set up the app under the company's facebook account exactly the same way as I did when using my personal facebook account, then I got this redirect problem. If I switch back the FacebookAppID/FacebookAppSecret to the one I created under my personal account, everything works fine. That's even more puzzling.
I finally figured out the problem. I forgot to turn on "make this app and all its live features available to the general public" setting for the app I created in Facebook. So the login was only available to the developer who created the app. After I turn that setting on (it is under the Status and Review Tab), everything works fine.
I am tryign to auth the users of my app by redirecting to this auth url
http://www.facebook.com/dialog/oauth?client_id={APP_ID}&redirect_uri=http%3A%2F%2Fapps.facebook.com%2F{APP_NAME}%2F&scope=email,user_about_me,user_birthday,user_hometown
It all works fine on my developer account that created the app and all authorises okay.
When I use another account that is not linked to the app in any way I am gettng the following error appearing but with no clue as to why?
Does any one have any ideas as to why this may be happening.
It appears that my Facebook App was corrupt in someway. I create a new app in Facebook with new APP ID and Secret and it all worked ok in the end.
I want to create a Facebook App. I've done everything they specified.
I have made setup to test application on my localhost as they have specified Here
I'm getting the index page properly (see the image below). But when I click on Facebook login button, I'm getting the following error
Why is this so? What should I do? Did I miss something?
I have PHP-sdk of Facebook. and regards
Try setting App domain ir your App setings. I don't think you can login from localhost.
My facebook login on my website works perfectly in normal browsers on my laptop. When I try to login on my cell phone (Android 2.2) I am getting the following error:
redirect_uri is not owned by the application
Any idea why?
On https://developers.facebook.com/ under your app/settings verify that the url you have matches the redirect url you are using.
Is the mobile instance running from a different url?
Please include your code if this doesn't help.