This is a migrated thread and some comments may be shown as answers.

Facebook SDK Javascript oAuth

1 Answer 153 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Христо
Top achievements
Rank 1
Христо asked on 19 Nov 2014, 08:56 AM
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 :)

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 21 Nov 2014, 12:22 PM
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.

Regards,
Anton Dobrev
Telerik
 

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

 
Tags
Apache Cordova
Asked by
Христо
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or