最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Channel URL Facebook - Stack Overflow

programmeradmin0浏览0评论

I'm implementing the Facebook login in my website which is in the form of mysite.anotherdomain. I did all explained in the Documentation of the JavaScript SDK but, since I have some problems, I'm wondering if the error es from the channel URL.

What should I exactly write for the channel file?

I'm implementing the Facebook login in my website which is in the form of mysite.anotherdomain. I did all explained in the Documentation of the JavaScript SDK but, since I have some problems, I'm wondering if the error es from the channel URL.

What should I exactly write for the channel file?

Share Improve this question edited May 6, 2021 at 14:49 Jason Aller 3,65228 gold badges41 silver badges39 bronze badges asked Apr 4, 2013 at 20:35 Federico CapelloFederico Capello 1,1183 gold badges12 silver badges21 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

The channel file basically fixes certain cross-domain issues for certain browsers. The following are the three that Facebook has identified:

  • Pages that include code to municate across frames may cause Social Plugins to show up as blank without a channelUrl.
  • if no channelUrl is provided and a page includes auto-playing audio or video, the user may hear two streams of audio because the page has been loaded a second time in the background for cross domain munication.
  • a channel file will prevent inclusion of extra hits in your server-side logs. If you do not specify a channelUrl, you should remove page views containing fb_xd_bust or fb_xd_fragment parameters from your logs to ensure proper counts.
  • All you need inside the file is

    <script src="//connect.facebook/en_US/all.js"></script>
    

    You can find out more from https://developers.facebook./docs/reference/javascript/#channel

    发布评论

    评论列表(0)

    1. 暂无评论