开发者

Does Facebook Connect have a javascript API that doesn't open a new window? [duplicate]

开发者 https://www.devze.com 2022-12-26 17:46 出处:网络
This question already has answers here: Facebook Connect Dialog Popup (2 answers) Closed 8 years ago. I want it to have a popup dialog javascript box. Instead of a ne开发者_如何学JAVAw wi
This question already has answers here: Facebook Connect Dialog Popup (2 answers) Closed 8 years ago.

I want it to have a popup dialog javascript box. Instead of a ne开发者_如何学JAVAw window. I've seen it before. How can I get it?

Thanks.


Unfortunately, Facebook prohibits using a javascript pop-up instead of a new window. Until early this year, they weren't doing anything to block it, so some sites were doing it that way.

Now they've started detecting when they're in an iframe and are putting up a black overlay that, when clicked, opens their login in a new window. At least their implementation still allows sites that are doing it the "wrong" way to work with no changes, but it's frustrating.

It's possible to work around this using their mechanisms for client authentication, but that involves your web site prompting for the user for their Facebook password which is a horrible idea for security and privacy reasons as well as an explicit break of Facebook TOS.

0

精彩评论

暂无评论...
验证码 换一张
取 消