Open mpeguero opened 9 years ago
+1
I've been trying too. I don't get this working, I just have
Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://static.ak.facebook.com". The frame being accessed set "document.domain" to "facebook.com", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access
I have something like this
.module( 'demoPolar', [
'ngRoute',
'ngAnimate',
'ngCordova',
'angular-loading-bar',
'firebase',
'angular-flexslider',
'ngFacebook'
])
.config( function( $facebookProvider ) {
$facebookProvider.setAppId('1534579073500027');
$facebookProvider.setVersion("v2.5");
$facebookProvider.setPermissions("email");
})
.run( function( $rootScope ) {
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
})
Try this article
https://blog.nraboy.com/2015/03/sign-into-firebase-with-facebook-using-ionic-framework/
Date: Wed, 28 Oct 2015 08:23:57 -0700 From: notifications@github.com To: ngFacebook@noreply.github.com CC: miguel_peguero30@hotmail.com Subject: Re: [ngFacebook] Does not works on cordova android project (#53)
+1
I've been trying too. I don't get this working, I just have
Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://static.ak.facebook.com". The frame being accessed set "document.domain" to "facebook.com", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access
I have something like this
.module( 'demoPolar', [ 'ngRoute', 'ngAnimate', 'ngCordova', 'angular-loading-bar', 'firebase', 'angular-flexslider', 'ngFacebook' ])
.config( function( $facebookProvider ) { $facebookProvider.setAppId('1534579073500027'); $facebookProvider.setVersion("v2.5"); $facebookProvider.setPermissions("email"); })
.run( function( $rootScope ) { (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); })
— Reply to this email directly or view it on GitHub.
Hi, I trying to use ngFacebook on a mobile app but is does not work. I tasted on desktop and it works perfect. What can I do to make it works on mobile?. Thanks