Javascript error on Facebook Likebox

Head out to http://brucegust.com/rodgers/facebook.php. It looks fine by itself, but when I attempt to implement it as part of http://www.brucegust.com/rodgers, it's all over the place.

When I look at my Error Console, I get this:

Unsafe JavaScript attempt to access frame with URL http://brucegust.com/rodgers/facebook.php from frame with URL http://www.facebook.com/plugins/like_box.php?app_id=468091579883121&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D27%23cb%3Df19c70bcd4%26domain%3Dbrucegust.com%26origin%3Dhttp%253A%252F%252Fbrucegust.com%252Ffd339785%26relation%3Dparent.parent&header=true&href=https%3A%2F%2Fwww.facebook.com%2Frodgerstaekwondo&locale=en_US&sdk=joey&show_border=true&show_faces=true&stream=true&width=292. Domains, protocols and ports must match.
ping:1Given 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.
Unsafe JavaScript attempt to access frame with URL http://brucegust.com/rodgers/facebook.php from frame with URL https://www.facebook.com/plugins/like_box.php?app_id=468091579883121&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D27%23cb%3Df19c70bcd4%26domain%3Dbrucegust.com%26origin%3Dhttp%253A%252F%252Fbrucegust.com%252Ffd339785%26relation%3Dparent.parent&header=true&href=https%3A%2F%2Fwww.facebook.com%2Frodgerstaekwondo&locale=en_US&sdk=joey&show_border=true&show_faces=true&stream=true&width=292. Domains, protocols and ports must match.
2Unsafe JavaScript attempt to access frame with URL http://brucegust.com/rodgers/facebook.php from frame with URL https://www.facebook.com/login/plugin_roadblock.php?target_url=https%3A%2F%2Fwww.facebook.com%2Fplugins%2Flike_box.php%3Fapp_id%3D468091579883121%26channel%3Dhttp%253A%252F%252Fstatic.ak.facebook.com%252Fconnect%252Fxd_arbiter.php%253Fversion%253D27%2523cb%253Df19c70bcd4%2526domain%253Dbrucegust.com%2526origin%253Dhttp%25253A%25252F%25252Fbrucegust.com%25252Ffd339785%2526relation%253Dparent.parent%26header%3Dtrue%26href%3Dhttps%253A%252F%252Fwww.facebook.com%252Frodgerstaekwondo%26locale%3Den_US%26sdk%3Djoey%26show_border%3Dtrue%26show_faces%3Dtrue%26stream%3Dtrue%26width%3D292. Domains, protocols and ports must match.
Refused to display document because display forbidden by X-Frame-Options.
4Unsafe JavaScript attempt to access frame with URL http://brucegust.com/rodgers/facebook.php from frame with URL https://www.facebook.com/login/plugin_roadblock.php?target_url=https%3A%2F%2Fwww.facebook.com%2Fplugins%2Flike_box.php%3Fapp_id%3D468091579883121%26channel%3Dhttp%253A%252F%252Fstatic.ak.facebook.com%252Fconnect%252Fxd_arbiter.php%253Fversion%253D27%2523cb%253Df19c70bcd4%2526domain%253Dbrucegust.com%2526origin%253Dhttp%25253A%25252F%25252Fbrucegust.com%25252Ffd339785%2526relation%253Dparent.parent%26header%3Dtrue%26href%3Dhttps%253A%252F%252Fwww.facebook.com%252Frodgerstaekwondo%26locale%3Den_US%26sdk%3Djoey%26show_border%3Dtrue%26show_faces%3Dtrue%26stream%3Dtrue%26width%3D292. Domains, protocols and ports must match.
Refused to display document because display forbidden by X-Frame-Options.
2Unsafe JavaScript attempt to access frame with URL http://brucegust.com/rodgers/facebook.php from frame with URL https://www.facebook.com/login/plugin_roadblock.php?target_url=https%3A%2F%2Fwww.facebook.com%2Fplugins%2Flike_box.php%3Fapp_id%3D468091579883121%26channel%3Dhttp%253A%252F%252Fstatic.ak.facebook.com%252Fconnect%252Fxd_arbiter.php%253Fversion%253D27%2523cb%253Df19c70bcd4%2526domain%253Dbrucegust.com%2526origin%253Dhttp%25253A%25252F%25252Fbrucegust.com%25252Ffd339785%2526relation%253Dparent.parent%26header%3Dtrue%26href%3Dhttps%253A%252F%252Fwww.facebook.com%252Frodgerstaekwondo%26locale%3Den_US%26sdk%3Djoey%26show_border%3Dtrue%26show_faces%3Dtrue%26stream%3Dtrue%26width%3D292. Domains, protocols and ports must match.

Open in new window


I'm assuming this is an indicator of my not doing something correctly, but I don't know the problem may be.

Thoughts?
brucegustPHP DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brucegustPHP DeveloperAuthor Commented:
I should say too that while I created this like box while logged in under my name, it was assigning the same app id as a previous app that's currently in Sandbox mode. Is this a problem?
0
COBOLdinosaurCommented:
Trying to access cross domain with scripting is a security violation. You cannot reference something from another domain in script.

Cd&
0
leakim971PluritechnicianCommented:
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.

So what did you set in the FB application settings?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

brucegustPHP DeveloperAuthor Commented:
I was recently made an administrator of Rodgers TKD's Facebook. When I went in to create a like box, I was prompted to recognize that I was entering the Facebook developer's dynamic as "Bruce Gust" and the APP id was going to be categorized under a previous project.

I'm thinking that's where everything is getting fouled up: I'm referencing a URL that's not consistent with the app id, but I'm confused as to how I need to start from scratch and ensure that everything's lining up the way that it needs to.

What do you think?
0
dimmergeekCommented:
You're missing the ";" after your function call on line 32:

preload("images/background.jpg",)

Open in new window


and since there is a comma there, are you supposed to have another variable for the function?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brucegustPHP DeveloperAuthor Commented:
I figured it out. Thanks for the feedback, folks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.