[SOLVED] FB Login domain problem

I was having this issue for a while so just wanted to share how I fixed it. I set this up for a local dev server for lets say https://myapp.local

The setting that made this work for me was the Valid OAuth Redirect URIs in Facebook Login. I originally has this as https://myapp.local - but then I changed it to the EXACT url that I was using in the Redirect field for my request.

My final working settings are:

In App -> Settings -> Basic:
App Domains: myapp.local
Site URL: https://myapp.local/

In App -> Facebook Login -> Settings:
Valid OAuth Redirect URIs: https://myapp.local/login/facebook/callback

Hello! I have tried EVERYTHING possible to get this to work. When i try to log into the website I’m using this is the whole URL I get
https://www.facebook.com/dialog/oauth?client_id=529790457058278&redirect_uri=http%3A%2F%2Fwww.motionlessinwhitefanfiction.com%2FAccount%2FFacebook%2F&state=bfd52b3762be6663734607a55e8f10b2&scope=email

Which exact part of this do I use? I’ve tried for hours and can’t figure out which exact portion of this I use in the developer app.

Thank you for any help!!

i want to update PHP SDK to 5.6.2 but i dont know how please help ???

You need to install Composer on your machine. Check google for ā€œhow to install composer on windows/mac/linuxā€. Then you need to run the command ā€œcomposer require facebook/graph-sdkā€ in the terminal window.
The github repo is here: https://github.com/facebook/php-graph-sdk

1 Like

I’m having a ton of difficulty getting my app linked up with Facebook to use it as a way to login.

I’ve followed everything from above, but to no prevail. Can anyone kindly help?

40

yeah Me too :frowning: i ve update Sdk but still same problem
2018-04-23%2015_37_16-Invite%20de%20commandes

I signed up just to like your post

Your URL is hashed so your :// looks like this: %3A%2F%2F

Change your garbage to this: https://www.facebook.com/dialog/oauth?client_id=529790457058278&redirect_uri=http://www.motionlessinwhitefanfiction.com/Account/Facebook/&state=bfd52b3762be6663734607a55e8f10b2&scope=email

I believe that should work, the bit you cut for facebook is this:

http://www.motionlessinwhitefanfiction.com/Account/Facebook/

Try putting that into strictmode as per my post above and it should work.

Right click on your facebook login button on your website and copy the URL in for me here.

I get that same error when i try to log in this is the url that is show in the facebook dialog:
https://www.facebook.com/v2.12/dialog/oauth?app_id=866665793537033&channel_url=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2F2VRzCA39w_9.js%3Fversion%3D42%23cb%3Df19ad3573239a14%26domain%3D127.0.0.1%26origin%3Dhttp%3A%2F%2F127.0.0.1%2Ff13d7ccc85a46c4%26relation%3Dopener&client_id=866665793537033&display=popup&domain=127.0.0.1&e2e={}&locale=en_US&origin=1&redirect_uri=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2F2VRzCA39w_9.js%3Fversion%3D42%23cb%3Df3f5bd0127f222%26domain%3D127.0.0.1%26origin%3Dhttp%3A%2F%2F127.0.0.1%2Ff13d7ccc85a46c4%26relation%3Dopener%26frame%3Df2bacde3ab5978c&response_type=token%2Csigned_request&return_scopes=true&scope=public_profile%2Cemail%2Cuser_friends%2Cmanage_pages&sdk=joey&version=v2.12

What is the correct redirect url i should add in the valid oauth redirect uris ?

it is YES by default :neutral_face: What’s the solution ???

Same problem here. Frustrating…

I tried all the above and NOTHING worked…couldnt figure out the updating the SDK but tried virtually every other alternative mentioned above.It used to be so easy before the march update :poop:

Has anyone solved the problem

When ever i update the Valid OAuth Redirect URIs with www.______.com/login/facebook/callback and www.______.com/login/facebook/connect. It would work for the initial attempt to share the post, but afterwards there would be an error message for
ā€œCan’t Load URL: The domain of this URL isn’t included in the app’s domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.ā€

We have another website with all the same content on a extension with www._______.us which works fine for the same app.

Please let us know if you have some recommended solutions.

Followed every post in this thread until I reached this one. This worked for me! THANK YOU @seth.reiter!!!

1 Like

Hi, My website is not public yet and I am using cloudaccess for hosting and my url is http:// and not https://
and when I am clicking on the login with facebook button, it gives the following error ā€œInsecure Login Blocked: You can’t get an access token or log in to this app from an insecure page. Try re-loading the page as https://ā€
I tried putting https instead of http but the site does not work. I think i need to get a SSL certificate. Do I need to?
Please help

I downloaded it, but where to install it. I mean in which folder or directory it should be there. Plz help

Hi All - I’ve tried all of the above suggestions but am only having success when I go on a private browsing window on either safari or chrome. On normal windows I’m getting both the URI not whitelisted error and the ā€œyou are not logged inā€ error. Does anyone have a suggestions based on the attached pictures?? Would really appreciate any help.

Website: Bubble Application

Hi, guys! One more recommendation from my side for those who try to fix it in 2019 that helped me to make work FB Sign Up.

Bubble tells us on FB Plugin Page a generic redirect URL to use. This is an example : https://yourwebsite.com/api/1.1/ oauth_redirect

Take it and paste in FB for Developers > FB Login > Settings as a Valid OAuth Redirect URI.

.

Hope that it helps you as it worked for me:crossed_fingers:

1 Like