Is there a way to load a facebook page inside my f

2019-08-17 02:18发布

问题:

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>

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?

回答1:

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

Here's the 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