在Facebook之外打开Facebook应用程序 [英] Opening Up Facebook app outside Facebook

查看:167
本文介绍了在Facebook之外打开Facebook应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我在Facebook iframe中加载的网络应用程序。事情是我的应用程序打开文件选择器,它发送回加载它的数据表单。但是如果我的网络应用程序在一个iframe内,它不允许文件选择器由于安全原因进行通信。



所以当我在FB页面点击我的应用程序,我把他们从Facebook和打开我的网络应用程序在浏览器。这个东西在Android或Windows上完美无缺。但是在Iphone中,它不会将该应用程序带到外面,并且不会在浏览器中打开。



你知道为什么吗?是否有解决方案?

解决方案

似乎问题是浏览器的弹出窗口阻止程序的安全功能。
如果窗口出现在用户交互的回调之外,它将窗口视为弹出窗口。
因此,它将桶作为弹出窗口并被阻止。
不幸的是,iOS Safari绝对没有任何迹象表明,难以追踪这个问题。


I have a web app which I am loading in Facebook iframes. The thing is my app opens File Picker which sends backs the data form where it was loaded. But if my web app is inside an iframe it doesn't allow File picker to communicate back due to security reasons.

So what I am doing it when the users on my FB page click on my app I take them out of the facebook and open my web app in browser. This thing works perfectly in Android or on my Windows. But in Iphone it doesn't takes the app outside and doesn't open it in the browser.

Do you know why? Is there a solution for it?

解决方案

Seems the problem is a security feature of the browser's popup blocker. It treats the window as a popup if it occurs outside of the callback of a user interaction. It therefore gets buckets as a popup and blocked. Unfortunately, iOS Safari gives absolutely no indication of this, making the issue difficult to track down.

这篇关于在Facebook之外打开Facebook应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆