简体   繁体   English

如何获得我的Facebook墙贴?

[英]How get my Facebook wall posts?

I am using Facebook Toolkit. 我正在使用Facebook Toolkit。

I have appKey and appSecret, but I dont want that visitor need to conenct to facebook. 我有appKey和appSecret,但我不希望该访问者需要连接到Facebook。 I will use my login/passwork to get my wall posts. 我将使用登录名/密码来获取我的留言墙。 This is possible? 这个有可能?

To access facebook data without a logged in user's session, you need to create an "infinite session key" for you or the facebook page and set the toolkit's session key property to this. 要在没有登录用户会话的情况下访问Facebook数据,您需要为您或Facebook页面创建一个“无限会话密钥”,并将工具箱的会话密钥属性设置为此。 I don't recall the details on how to create so you would need to google this. 我不记得如何创建的详细信息,因此您需要用Google搜索。

It sounds like you are just trying to display a facebook page wall feed on your own website. 听起来您只是想在自己的网站上显示Facebook页面墙供稿。 If this is the case, you could also try using the new graph api. 如果是这种情况,您也可以尝试使用新的图形API。 The return format is json. 返回格式为json。 If you can parse/consume json easily, the url to the feed takes the following format: 如果您可以轻松解析/使用json,则供稿的网址采用以下格式:

https://graph.facebook.com/cocacola/feed https://graph.facebook.com/cocacola/feed

(Replace cocacola with your pages url details (用您的网页网址详细信息替换可口可乐

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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