有没有办法在我的Facebook应用程序画布页面中加载Facebook页面 [英] Is there a way to load a facebook page inside my facebook application canvas page

查看:140
本文介绍了有没有办法在我的Facebook应用程序画布页面中加载Facebook页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在我的Facebook应用程序画布页面中加载Facebook页面?

我在应用程序页面中使用ifarame尝试了以下代码。

Is there a way to load a facebook page inside my facebook application canvas page?
I tried this using ifarame inside my application page with following code.

<iframe src="MY_FACEBOOK_PAGE_URL_HERE" width="100%" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

但它不允许我加载任何Facebook页面。

我只需要在我的画布页面中显示我的个人资料+评论框的图像,包括提出的评论应该允许我发布该图片的评论,并显示以前发布的所有评论

But it doesn't allow me to load any facebook pages.
I just need to display an image of my profile + comment box including posed comments inside my canvas page.It should allow me to post comments for that image and display all previous posted comments.
Can anyone please help me with this?

推荐答案

我觉得Facebook有一个框架拦截器脚本运行,阻止这种事情。但是,如果您实现了图形API和一个Facebook应用程序,那么您应该可以使用它来访问您的页面帖子,然后显示它们。图表api资源管理器可让您查看可用的连接。

I think facebook have a frame blocker script running that prevents this kind of thing. However, if you implement the graph api and a facebook application, you should be able to access your page posts using that and then display them. The graph api explorer lets you see what connections are available

http://developers.facebook.com/tools/explorer

这里是api
http://developers.facebook.com/docs/reference/api/

这是一个可口可乐代表的例子

And here's an example of coca cola's repsonse

http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts

还有发布方法,但用户需要授权您的应用程序

There are also methods for publishing but users will need to authorize your app

这篇关于有没有办法在我的Facebook应用程序画布页面中加载Facebook页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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