Facebook Javascript SDK and Phonegap URL error - android

I'm currently trying to develop a facebook login functionality using phonegap in an android app. I've done all the ncessary installs and generated an hash key for the app which I have placed on facebook but I keep getting the 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. 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 had a look at the following link and done what the link suggested but I'm still getting the same error in the logcat console

The implementation which have you have used will be working for web application (running in browser). For native app, please follow this steps. Please let me.

Related

Create an AppLink for existing Content that works in the Facebook App

I have existing content ( e.g. https://3doo.com/web/medium/details?mediaId=41c087be-2f4a-4ee6-8336-2d56a702fba8 )
For this content I have created meta tags according to the facebook metadata reference and AppLink documentation.
The AppLink works fine when opened on:
PC Browser
Android Browser
It does not work when opened in the Android Facebook app. A short notice pops up that says "There was a problem opening the app." and nothing else.
How Do I get my AppLink to work with the Android FB App?
To properly configure your Android Links to deeplink from Facebook, you need to properly configure Facebook App Links.
The easier option is to use a third-party like Branch's Android SDK that handles Facebook deep linking as well as linking from all of platforms in one packaged link.
So according to the metadata reference of facebook the "al:android:package" tag was optional, without explaining what about it is optional.
It is optional if you don't care about opening your app via deeplink from the facebook app. If the facebook app on Android should be able to start your Android App you have to provide the fully qualified classname of the activity to which the facebook app should redirect.

Facebook login with ionic v1

I'm trying to develop an ionic app using facebook login. But I got some issues with Facebook configuration.
I'm using this GitHub project (https://github.com/chanusukarno/Angular-Ionic-OAuth) as example and I'd configured the Facebook app into https://developers.facebook.com.
The problem is: in my localhost it works fine, since I set the Valid OAuth redirect URIs with localhost:8100 as value.
But, when I try to test in my device it does not work. I got a message like that: can't load url the domain of this url isn't included in the app's domains.
I need to know how I configure Facebook for my device.
You need to add product in your developer console and configure it like this:
Hope this helps!

App Domain for Facebook integrated Android App

What should I enter for 'App Domains' in configuring my Facebook App ( developers.facebook.com)? I'm developing an Android App using Xamarin. I run the app in the Android SDK Emulator. There is no URL as near as I can tell.
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. It must match the Website URL (What?) or Canvas URL (What? What?), or the domain must be a subdomain of one of the App's domains. (what? what? what?)
I'm running in an Emulator, which is the standard way to do development. There has to be a way to configure the Facebook API to accept my requests from the emulator. Anyone dealt with this problem before? Please help.
App Domain is not necessary/required, you can left it...!
Facebook sdk does not require the app domain and it works fine without it, But if you want to fill it, you can use the application's website domain address for example http://www.google.com .

Given URL is not allowed by the Application configuration in Eclipse Android app

I am using Facebook Login Button by Facebook Phonegap SDk in Android app.
I import Facebook Phonegap SDK as a library project in Eclipse.
I have done all the setting as per below link in www.developer.facebook.com
Given URL is not allowed by the Application configuration
When i run Android app in emulator,it display following error in 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. at https://www.facebook.com/dialog/oauth?api_key=1234567890&app_id=1234567890&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df3832ed204%26origin%3Dfile%253A%252F%252F%252Ff8897604c%26relation%3Dparent.parent%26transport%3Dpostmessage&client_id=1234567890&display=none&domain&origin=2&redirect_uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df102b39294%26origin%3Dfile%253A%252F%252F%252Ff8897604c%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df155d614cc&response_type=token%2Csigned_request%2Ccode&sdk=joey:1
What might be the problem?
In the Advanced Settings-
Switch Embedded browser OAuth Login to YES
Add https://www.facebook.com/connect/login_success.html in Valid OAuth Redirect URIs field.

Given URL is not allowed by the Application configuration Facebook Android

I'm developing a Facebook integrated Android app. I followed this tutorial to the dot. The problem is that I get the following error if the Facebook app is not installed on the device when logging in:
Given URL is not allowed by the Application configuration
I implemented Single Sign On as specified in the tutorial. If I run my app on a device with the Facebook app already installed, my app redirects to the Facebook app to sign in. That's fine. However, if the Facebook app is not installed, I get the error. Here's a snapshot:
which redirects to Web page not available on signing in:
Edit: I double checked the tutorial and saw this bit about filling a Mobile Web URL which I didn't follow. I'm not quite sure what to enter here. Any help?
Fixed it. Seems to have been a bug on Facebook's side. Using the updated repo from github solved the problem.

Categories

Resources