Hi,
I’m using Facebook sdk for login, But the android Shopify app device does not allow me to log in. It shows the “For your account security, logging in to Facebook from an embedded browser is disabled” error message.
Platform: angularjs
window.fbAsyncInit = function () {
FB.init({
appId: "XXXXX", // App ID
status: true, // check login status
cookie: true, // enable cookies to allow the server to access the session
xfbml: true, // parse XFBML
oauth: true,
version: "v11.0",
});
};
// Load the SDK Asynchronously
(function (d) {
var js,
id = "facebook-jssdk",
ref = d.getElementsByTagName("script")[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement("script");
js.id = id;
js.async = true;
js.src="https://connect.facebook.net/en_US/sdk.js";
ref.parentNode.insertBefore(js, ref);
})(document);