简体   繁体   中英

facebook iframe cross domain cookies issue on safari

ı have facebook application works on ff,ie,chrome.

but ı have problem on safari.

ı have links one page to another. but when ı click its redirecting to index.php.

ı read some articles and tried to many ways but stil ı couldt figure it out.

ı read this:

Facebook Iframe App with multiple pages in Safari Session Variables not persisting

and

Setting cross-domain cookies in Safari

Safari blocks 3rd party cookies by default. See: http://webpolicy.org/2012/02/17/safari-trackers/

We solved this by opening a popup on a login button. The popup opens a url on the new domain and then quickly closes the popup. This means that tbe user have now visited the domain (in the top url) and allows us to save cookies on that domain. This works good in a facebook app since we can not use other solutions such as posting from the parent frame to the iframe.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM