I'm implementing facebook login with cordova app, but I'm not able to understand which configuration needed to do in facebook app for this facebook login using meteor cordova. I've done the following steps:
- create app
- add website as platform
- add Valid OAuth redirect URIs(https://www.facebook.com/connect/login_success.html,http://localhost:3000/oauthcallback.html,http://localhost:3000/_oauth/facebook?close)
- add website url ("http://localhost:3000")
- added phonegap facebook connect plugin
below code in my mobile-config.js
App.configurePlugin('com.phonegap.plugins.facebookconnect', { APP_ID: '', APP_NAME: '' });
I added following code in settings.json file
"facebook": { "appId": "", "secret": "" }
I added this code at server side js
ServiceConfiguration.configurations.insert({ service: 'facebook', appId: '', secret:"" });
I'm able to login in web but not able to login in cordova app. i'm getting following error
given url is not allowed by the application configuration : one or more of the given URLs is not allowed by the app’s settings. To use ths URL you must add a valid native platform in your app’s settings
can anyone help me to config my facebook app?