iframe中的Oauth推特和Facebook应用程序 [英] Oauth Twitter and Facebook Apps within iframes

查看:113
本文介绍了iframe中的Oauth推特和Facebook应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个浏览器应用程序,代表用户自动更新状态'/ tweet到Facebook和Twitter。

I am writing a browser app to update status' / tweet to Facebook and Twitter automatically on users behalf.

我的问题是我需要这个应用程序在iframe中工作,因为应用程序是用PHP编写的,但需要在ASP站点内工作。

My issue is I need this app to work within an iframe as the app is written in PHP but needs to work within an ASP site.

这是可能的吗?我已对此进行了测试,它似乎在已经过身份验证时更新了状态,但我在iframe中进行身份验证时遇到了问题。

Is this going to be possible? I have tested this and it seems to update the status when already authenticated but I am having issues authenticating from within the iframe.

非常感谢您的任何帮助。

Many thanks in advance for any help.

推荐答案

Twitter赢了不允许您嵌入其OAuth身份验证部分。但是,实际请求或其他任何问题都不是问题。

Twitter won't allow you to embed its OAuth authentication parts. However, actual requests or anything else isn't a problem.

我认为这与Facebook相同,特别是当你使用PHP制作时请求。

I'd assume that this is the same for Facebook, especially when you're using PHP to make the requests.

回答你的(第二个)问题:你可能只是获取ASP中的所有查询数据并将其传递给PHP框架。我从来没有做过ASP,但在PHP中,这就像< iframe src ='frame.php?<?php echo $ _SERVER ['QUERY_STRING']一样简单; ?>'>

To answer your (second) question: you can probably just get all query data in ASP and pass it to the PHP frame. I've never done ASP but in PHP that would be something as simple as <iframe src='frame.php?<?php echo $_SERVER['QUERY_STRING']; ?>'>

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

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