JavaScript access error when trying to publish user event

0 views
Skip to first unread message

cpjolicoeur

unread,
Nov 23, 2009, 5:54:14 PM11/23/09
to facebooker
I'm adding Facebook Connect support to my rails app and have run into
an issue.

I have the login side of things working with FB Connect but am having
an issue trying to post to the users FB stream via Facebooker.

The error I'm getting via Safari, Google Chrome, etc via the console
is this:

Unsafe JavaScript attempt to access frame with URL
http://onlygoodgifts.dev/users/1-cpjolicoeur/items from frame with URL
http://www.facebook.com/extern/login_status.php?api_key=***hidden***&extern=0&channel=http%3A%2F%2Fonlygoodgifts.dev%2Fxd_receiver.html&locale=en_US.
Domains, protocols and ports must match.


Currently I'm only testing on my local machine and not on a staging
( or production ) server.

I'm not sure why I'm getting what appears to be this sort of cross-
site scripting error.

I've googled around and found a few things on StackOverflow and one
thread relating to a wordpress comment setup, but nothing solid that
seems to help me out.

Any ideas on what my problem here is?

William Hertling

unread,
Dec 1, 2009, 11:44:19 PM12/1/09
to facebooker
Hmmm... we have had a lot of issues with Safari not allowing cross
domain iframes. In fact, we haven't figured out how to make it work,
and so we have instead degraded the Safari experience to avoid iframes
and therefore we can't use Javascript libraries, so then we just live
without Javascript at all. We have not seen the same problem with any
other browser other than Safari.

On Nov 23, 2:54 pm, cpjolicoeur <cpjolico...@gmail.com> wrote:
> I'm adding Facebook Connect support to my rails app and have run into
> an issue.
>
> I have the login side of things working with FB Connect but am having
> an issue trying to post to the users FB stream via Facebooker.
>
> The error I'm getting via Safari, Google Chrome, etc via the console
> is this:
>
> Unsafe JavaScript attempt to access frame with URLhttp://onlygoodgifts.dev/users/1-cpjolicoeur/itemsfrom frame with URLhttp://www.facebook.com/extern/login_status.php?api_key=***hidden***&....
Reply all
Reply to author
Forward
0 new messages