How to fix localhost Facebook apps “Error: Can’t Load URL: The domain of this URL isn’t included in the app’s domains” - html

I know that this question has been asked previously in this link Facebook OAuth "The domain of this URL isn't included in the app's domain" , but the solution is not working for me and it doesn't strictly similar to my issue.
I'm trying to setup Facebook OAuth to work with my application that is being developed locally on my machine.
I followed every steps from facebook guide:
I created my application
I added a web platform with the url http://localhost/
I added Product Facebook Login
I added code for Continue with Facebook button described here in my html page
Facebook button is on my page but it doesn't work when I click on it (Error: Can't Load URL: The domain of this URL isn't included in the app’s domains).
I tried to add a domain (localhost, http://localhost, http://localhost:5000) but it didn't work.
I then added http://localhost:5000/ to the field 'Valid OAuth redirect URIs', but no improvement.
Here my Facebook login settings :
login setting
Thanks for your answers !

Related

Firebase Unauthorized access

Consider the following web application flow.
user hits login/sign up page
user signs up and logs in
browser redirects to their profile page
My question is, using firebase authentication services, how do I restrict usage of the profile page without authorization to the web application?
Moreover, can I host this web application on firebase, and this functionality will be taken care of for me?
Well profile pages for example are generally sites that are dynamically filled with data. You don't have to restrict access to the page itself but instead restrict the API with the JSON restrictions settings firebase offers. This way nobody can access any other profile pages than their own. To prevent annoying users which have for example saved a link to their profile page but are not logged in you can add a redirect users that are not logged in.
Yes, you can create a new project using firebase console and deploy your application to it. You can also enable email authentication to the application on firebase. Follow this link for more information: https://firebase.google.com/docs/web/setup

Chrome extension inline install not working in verified IP site

I have verified my IP (not the domain) using webmasters tool and it successfully verified.
I have added <link> and called chrome.webstore.install() and getting this error:
Inline installs can only be initiated for Chrome Web Store items that have one or more verified sites.
I think I should call chrome.webstore.install() from subdomain or a page. So I am calling from a page (index.html) but url is just the IP.(like http://52.1.165.721/#/home) (Angular UI routing and index is default page.)
My questions are:
1.I didn't have a domain yet. Is that a problem?
2.I have to install extension from home page itself. I got some websites (eg: https://adblockplus.org/) as examples. But don't know how to do that. Please help.
I went through
How to test inline installation of Chromium/Chrome extensions locally? ,
Chrome Inline Install for extension not working and
chrome.webstore.install(); Not working on verified site
So as Xan said I added Website link and didn't fill Verify that this is an official item for a website you own: because my domain was not listing there.
The problem was I uploaded extension using my work account and verified site using my personal account. So I added my other account as an owner with help of https://support.google.com/webmasters/answer/2454036?vid=1-635766230904751668-2044003462 and refresh list does the trick.
So I selected the verified site from drodown and after a two minutes inline install worked.
Turns out:
1.We don't need to buy the domain. IP will work.
2.Calling chrome.webstore.install() from home page itself will work too. (Url doesn't matter I think)

Login on a site via google chrome extension

I want to make an extension for google chrome that watches for updating of information on a site. The problem is to do this I must to be logined on the site. Can I make an exsension so as it would ask a login and password from the site at start and then stores this information in the cookies? Does Chrome maintain abilities to make extension like this?
You don't have to do it. If you send a request from chrome extension to www.example.com - for example, the chrome extension adds the cookies from this site to your request. If the user isn't connected to example site, you can redirect him to login page in example.com and then continue. (Of course, you have to type "www.example.com" permission in manifest.json).
You can see sample from google- google mail checker.
(I'm sorry about my English).

facebook loginbutton on wp8 issues

I am using facebook c# sdk in my windows phone 8 app. When I click the login button of the facebook Controls using the loginbutton control it ask for username and password.
After entering the credentials it shows me
"security warning please treat the url above as you would your password and do not share it with any..." page and then I cannot do anything.
It is always showing me the same page.
Also the sandbox mode for the facebook app whose id I am using in wp8 app is disabled.
I filed a bug report to Facebook today on this issue, posted one workaround to the Facebook SDK for .NET - Security Warning Issue thread.
The short answer is that authorization is broken and adds a question mark after the redirect_uri link, and FacebookSDK.NET does direct comparison between actual and expected Uri, and fails.

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK

Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the console:
Given URL is not allowed 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.
I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080/bookbayapp/. In my facebook developers app section I have the following:
But once again nothing seems to work. I am currently using Google Chrome for the testing and it is worth to mention that I am using the Facebook Plugin for Phonegap but when testing I comment out the link the to plugin js so I assume in doing this there shouldn't be any problems?
What works for me is using the actual URL of the production server, and then adding a line to the hosts file that redirects all traffic from that URL to localhost.
Let's say your website is called potatoes.com. In "Site URL" write:
http://potatoes.com/bookbayapp
and then open your hosts file (C:\Windows\System32\drivers\etc\hosts) and add the following line:
potatoes.com 127.0.0.1