Facebooker Connect and Safari 4

This seems to be a known issue, but I did not find a solution.

When a facebook application tries to make some JS calls via FB loading: Iframe with JS code, Safari blocks this saying

Unsafe JavaScript is trying to access a frame with a URL from a frame with a URL. Domains, names and protocols must comply

Is there any way to solve this problem?

+3
source share
1 answer

You should specify ChannelUrl in your FB.init (). If this is not set, you may get some of these problems.

FB.init({
  appId      : 'YOUR_APP_ID', // App ID
  channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
  status     : true, // check login status
  cookie     : true, // enable cookies to allow the server to access the session
  xfbml      : true  // parse XFBML
});

, p3p. http://www.hanselman.com/blog/TheImportanceOfP3PAndACompactPrivacyPolicy.aspx

0

Source: https://habr.com/ru/post/1719619/


All Articles