不公开内容的客户端身份验证Facebook的API [英] Facebook API without client authentication for public content

查看:220
本文介绍了不公开内容的客户端身份验证Facebook的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个客户端谁已经有他的产品在Facebook上的照片的网站,他希望同样的专辑超过他的网站被复制。我已经使用Facebook Connect,所以我放弃的组合 photos.getAlbums photos.get 动态让画廊。

I'm developing a site for a client who already have the photos of his products on Facebook, and he wants the same albums to be replicated over his site. I was already using Facebook Connect, so I dropped a combination of photos.getAlbums and photos.get to dynamically make the galleries.

到目前为止好,但后来我意识到,如果没有用户登录低谷FBC,没有创建会话和API变得不可用,即使对于是公开的内容。我当然希望显示谁他们的账户专辑给大家,而不仅仅是人。

So far so good, but then I realized that if there's no user logged trough FBC, no session is created and the API becomes unusable, even for content that is publicly available. I obviously want to show the albums to everyone and not just the people who connect their accounts.

这是怎么了Facebook的API工作的所有功能?什么是这种情况的最好的(容易实现)解决方法吗?

Is this how all functions in the Facebook API work? What's the best (easier to implement) workaround for this situation?

推荐答案

截至2010年9月,现在你只需进行身份验证的应用程序,没有相关的用户。见<一href=\"http://developers.facebook.com/docs/authentication/\">http://developers.facebook.com/docs/authentication/了解详情。或者你可以运行这个例子code以获得访问令牌:

As of September 2010, you can now authenticate just as an application, with no associated user. See http://developers.facebook.com/docs/authentication/ for details. Or you can run this example code to get an access token:

curl -F grant_type=client_credentials \
 -F client_id=your_app_id \
 -F client_secret=your_app_secret \
 https://graph.facebook.com/oauth/access_token

这篇关于不公开内容的客户端身份验证Facebook的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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