我可以在没有 api_key 的情况下访问 Facebook API 吗?
是否可以访问 Facebook API 来登录用户,或者允许用户通过第三方网站成为粉丝页面的粉丝,而无需在 Facebook 上实际创建应用程序?
Is it possible to access Facebook APIs for logging in a user, or to allow a user to become a fan of a fan page through a third party site, without actually creating an app on facebook?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不直接创建一个 fab 页面让用户成为该页面的粉丝?据我所知,没有 API 密钥就无法访问 facebook API。
Why don't you create a fab page directly for users to become fans for that page? And as far as i know, you can not access facebook API without API key.
如果不创建应用程序并获取 API 密钥,您将无法访问 API。有少量 API 查询无需用户添加应用程序即可运行甚至与之交互,但他们通常会检索非常基本的数据。
如果不使用粉丝框小部件 或者让他们直接通过网站进行操作。这是因为 Facebook 用于此类交互的 post_form_id 值仅出现在 facebook.com 提供的页面上,并且开发人员永远无法访问。否则,系统就会遭受各种利用。
无论如何,我不知道你想解决什么问题。创建应用程序 API 密钥并不困难(并且它不必是用于无会话查询的活动应用程序 - 只需创建一个应用程序并获取密钥即可)并且风扇框小部件可以使用 CSS 进行样式设置,只要您遵循 Facebook 制定的基本规则。
You can't access the API without creating an application and getting an API key. There are a small number of API queries that will work without the user having added an application or even interacted with it but they generally on retrieve very basic data.
There's certainly no programmable way of making a user a fan of a page without using a fan box widget or having them do it directly through the site. This is because the post_form_id value which Facebook uses for these kinds of interactions is only present on pages served from facebook.com and is never accessible to the developer. To allow otherwise would open up the system to all kinds of exploitation.
I've no idea what problem you're trying to solve anyway. Creating an application API key is no hardship (and it doesn't have to be an active application for session-less queries - just create an app and grab the keys) and the fan box widget can be styled with CSS, as long as you follow the basic rules that Facebook has set out.