-
Notifications
You must be signed in to change notification settings - Fork 126
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
Given URL is not allowed by the Application Configuration #79
Comments
Hi, But when I am trying to get this working on android build, I am getting error "Uncaught Missing localSDK setting pointing to the local javascript file with the Facebook SDK" in console and when I hit login, I get same error as you. I think that app tries to log in via JS SDK as above and not via local android SDK. Maybe I am wrong, but "angular-facebook-phonegap.js" script in this library is 9 months old and SDK api probably had changed. I guess we have to modify this module. |
Hi, I too have this problem.. Followed the instructions given by @jBenes and it worked on my local pc but I could get it to work over Cordova. Any help appreciated! :) |
@frg Can you access window.facebookConnectPlugin object from cordova? I have it there and it works (if I use it directly). But it is not compatible with this angular-facebook library, so I think they changed API. But I spent lot of time on this issue and rather decided to implement FB integration with Open Graph. It's working for me both on cordova and chrome (it is not clean to use Open Graph on cordova, but you don't need to install native SDK, only include small JS library). If you decide to switch to OG as me, here is good tutorial: http://ccoenraets.github.io/ionic-tutorial/ionic-facebook-integration.html But If you manage to handle with it without using OG, tell us how please :) |
@jBenes Yes I can access "window.facebookConnectPlugin".. I fear that you're right. Was hoping I found a strong fb integration solution. I guess I'll have create a custom solution! Thanks for the resources. I'll look into them and let you guys know what worked for me! :) |
@frg OK, if you go throught this tutorial, you can use my modified version of openfb.js file, so you don't need to debug it again (If I have time, I will make a PR from this). |
Hi @jBenes , I'm getting a "redirect_uri URL must be absolute" error. |
Hi, Login process runs in popup window, so it doesn't matter that this url is outside of our apps, popup will be closed anyway. |
Hi @frg , It works this way.. You can define adapter for FB library you want and it must implement predefined interface. In angular config you choose (based on window.cordova variable) which adapter you want to inject. In controller you don't care which lib is used, you just call methods of library wrapper. So far I have 2 adapters: for OpenFB library (can be used for develop in chrome) and for facebookConnectPlugin (can be used on android). I haven't implemented all methods, just the ones I use. But it can be easily extended and it's trivial to add adapter for other FB libraries. You can use it, if it helps you. I will write docs in next days. Repo: https://github.com/jBenes/angular-facebook-integration Example how to use it: https://gist.github.com/jBenes/61061ac3eea01d5e5f5e |
Problem is open on stackoverflow, we need a solution. |
Hi,
after setting up the FB app for Android ( filled in the package name generated the key hash and checked "single sign on", when running the code in the emulator, I get this error: "Given URL is not allowed by the Application Configuration". Do I need to setup also a "website" platform on FB? And if so, what should be the "site URL" since this is supposed to work in a cordova project?
Thanks.
The text was updated successfully, but these errors were encountered: