Facebook SDK Javascript oAuth

Thread is closed for posting
2 posts, 0 answers
  1. Христо
    Христо avatar
    13 posts
    Member since:
    Oct 2013

    Posted 19 Nov 2014 Link to this post

    Hello ,
    I want to use the facebook login functionality of Facebook SDK Javascript oAuth, but I have a small problem with the App Domains.
    When I try FB.login() the followin error apears - 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 tried to set http://local as a domain name but it not a valid name, while http://localhost is a valid.
    Can someone help me, whitch application settings I have to set, so I can run the facebook login from AppBuilder Simulator :)

    Thank you :)
  2. Anton Dobrev
    Anton Dobrev avatar
    609 posts

    Posted 21 Nov 2014 Link to this post

    Hello Hristo,

    I am not sure that I can understand your requirements. From my understanding you are placing http://localhost/ in Website - Site URL settings in the Facebook Apps Settings portal. This should work. Note that the login workflow will not work in the AppBuilder web client simulator.

    Since I am not very familiar with the FB JS SDK and this is not a known issue on our side - could share a runnable project and additional details that will be helpful for reproducing the issue?

    In addition, if you are using the FB JS SDK in a hybrid mobile app, I'd recommend that you refer to this forum thread with a Cordova plugin and a sample that implements a native behavior in a hybrid app. Generally, using the native FB SDKs in a hybrid app with the helpf of the plugin is the recommended approach.

    Let me know if you have questions.

    Anton Dobrev

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top