Skip to content

New Facebook Javascript API

by Topper on April 26th, 2010

UPDATE:
http://developers.facebook.com/docs/reference/javascript/FB.login
Only allowed to prompt for permissions due to a user action. Which is shitty, but I should have seen is documented.


UPDATE:
If you are seeing a repeating error in Safari and Chrome – it’s ok. It’s an ignorable error. If you can’t use login or prompt for permissions – it’s probably because (as stated above) those have to come from a click, double click, etc… some sort of user interaction.

I love the *looks* of the new Facebook javascript API. It’s got one major flaw though. It doesn’t work in Safari or Chrome. I have an app setup to use http://localhost:7000/ as the connect url and everything works *great* in Firefox. Things even work mostly ok in safari or chrome… but as soon as you try to launch the permissions dialog box you get the browser cycling through “unsafe javascript attempt to access frame with URL.”

Best part about this whole thing is: the facebook developer forums throw the *same* error.

Also, when I try to create an account on the forums (not using facebook connect) I get a “cannot connect to socket” error.

I guess I go back to their older clunkier API? Seems to be a number of complaints but no answers from Facebook.

  • Hey you can search for P3P header for chrome, ie and so…
    this P3P string works for all (safari chrome IE7 and IE8)
    CP=”IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT”