-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What should be the Site URL in facebook app settings to work from localhost? #376
Comments
I found the solution. Since I can't delete my question I will post what I found out in case someone else have the same issue. In the facebook app settings (on Facebook) I went to the Advanced section and looked under Security, for the field "Valid OAuth redirect URIs" - this is where I entered "http://localhost:8000/facebook/example/" and it worked |
Thanks, that helped me a lot. A played around for houres before I found your site. But had to insert the "Canvasseite" (Canvas-site? in english?). My inserted url is https://apps.facebook.com/lokalertester, not the Canvas-URL http://localhost:81/ |
xpanta, I don't understand how Facebook would be able to redirect to your local server when it's being described as localhost. It's not available on the Internet! |
The redirection is made by the browser not by the server. The server just send a somthing like a redirection header to the browser, and then the browser make the redirection. It is why with localhost this will work |
Thanks, It worked @xpanta |
Thanks very much. It really helps a lot. |
Thanks pal. This helped. |
@xpanta Thanks buddy, this was helpful. |
I tired exactly this but still getting the same "Given URL is not allowed by the Application configuration..." error. I entered "http://localhost:8000/facebook/example" into the facebook settings URL and again into the Valid Oauth Redirect URIs. Was there any settings.py or other facebook setting changes that you made? |
Hello, can someone please help me. I am trying to create a facebook app that runs on my localhost. For my app domain I have localhost. For my Canvas Url and secure Url I have http://localhost:8000/ and also for site URL. In my php code I have my canvas page url. When I access the app via the localhost url, I get the pop up for the permissions i requested but after that I am directed to a broken page on the facebook canvas page. I have done research, I know it is tricky to use localhost due to the ssl problem with facebook..... However I am really confused. I am a novice, can someone please help me out and explain my problem? Thanks. |
thanks man. after a lot of search your answer did it! |
It works fill it and its done :) |
Does anyone have any idea about the cURL and ssl errors when using localhost/xampp and creating my own self signed certificate? |
@123b0 what error you r facing please paste here |
@gaganphp I've solved the problem now. Thanks anyway. I made a stupid mistake and didn't put the full path for the image to be uploaded. |
I am not able to redirect back to localhost. My app is stuck at facebook canvas page "https://apps.facebook.com/springyellow/?code=......." not able to redirect back to localhost. I tried all . |
@ gaganphp, It appears the Website URL field is a 'required' field. It cannot be empty. I am still having this issue persisting even though I have set my localhost url on Valid OAuth redirect URIs. Ok I resolved this: If anybody else is having some issues, 1. a localhost url will work and 2. you must also set your $redirect_uri variable in your app code to a localhost url. |
Hey xpanta, coming to you from 2016, your solution worked for me!!! Many thanks. |
Thank you @xpanta ! Cured my headache! |
thank you @xpanta and @gaganphp for the soln |
Add product -> Facebook Login. |
thank's man |
i am also having same problem, whenever i tried to login via facebook i will get below error so, please give any suggestions. |
i need to finish this task ASAP, So please give solution.. |
i am using ionic app, with development stage.. |
parthiban26 - does this help?: http://stackoverflow.com/questions/31883079/ios-facebook-login-given-url-is-not-allowed-by-the-application-configuration |
I'm trying to allow users to login with facebook to my website but I am getting the following error: |
Add a custom domain url in your hosts file (if on windows) to mast the localhost or 127.0.0.1 |
I applied the above solution but it still not working for me .. it showing error -- "URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs" |
Try this: This should work if not then add your port to every http://localhost:80 part of these entries. Let me know how it goes. |
I am getting localhost refused to connect in chrome while using passport-facebook . Can anyone help me! |
still showing same error and in domain i am puting http://localhost, its
automatically taking localhost only .
…On Wed, Jul 26, 2017 at 8:48 PM, Mukesh Gupta ***@***.***> wrote:
I am getting localhost refused to connect in chrome while using
passport-facebook . Can anyone help me!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#376 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aasfrt3Nxmn-E9SicqwUNe_nXo4xIUK1ks5sR1jIgaJpZM4BF0mu>
.
|
Still not working |
not working. I think, generating your own SSL certificate for testing is a better solution https://stackoverflow.com/questions/8169999/how-can-i-create-a-self-signed-cert-for-localhost |
Hello |
Hello, |
The solution is not working for me. Is there any change in facebook implementation. I am using flask dance and my oauth url is https://localhost:5000/login/facebook/authorize |
Facebook no longer allows you to add URIs that are not HTTPS, so I can't add localhost. When I try to log into my app during development I now get an error "This IP can't make requests for that application." Any current solutions? |
You can create a local cert using https for localhost. |
There's something called "Test App" now. It's hidden so it isn't obvious that you have to create one. |
I am trying to work with the example page (/facebook/example/) from localhost and I always get "Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
In my Site URL (Facebook app settings) I have this: http://127.0.0.1:8000/facebook/example/
Is it possible to work from locahost? How?
The text was updated successfully, but these errors were encountered: