Facebook 多请求
我想在不征求许可的情况下将 Facebook 请求表单嵌入到粉丝页面上,朋友选择器是否可能不会弹出,而是显示在粉丝页面上?
我面临的问题是,
- 由于我不想打扰用户获取权限,所以我没有当前 UserId,我需要它来计算谁发送了多少请求
- 不希望弹出应用程序请求
- 不想使用 fbml因为它将在 2012 年 6 月之前被弃用
有什么帮助我如何使用 PHP 来做到这一点?
I would like to embed the facebook request form on the fan page without asking for permission, is it possible that the friend selector does not popup but instead displayed on the fan page?
The problem I am facing is
- As I do not want to bother user for permissions I do not have the Current UserId, which I need for computation of who send how many request
- Do not want the app request to popup
- Do not want to use the fbml as it will get deprecated by June 2012
Any help how can I do this using PHP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如您自己所说,您需要当前的用户 ID。我确信您可以在没有权限的情况下获得此信息以及其他基本数据,例如姓名和性别等。
尝试:
https://developers.facebook.com/tools/explorer/?method=GET&path=YOURUSERID< /code>你就会看到。
至于在页面中显示多好友选择器而不是弹出窗口,我自己没有这样做过,但通常您可以指定显示参数,例如
&display=page (而不是 display=popup
另外,我认为你必须使用 JS SDK 来执行此操作,而不是 PHP:
http://developers.facebook.com/docs/reference/dialogs/requests/
另外,如果您想向用户的朋友发送通知,那么您将需要权限才能执行此操作。
As you say yourself, you need the current user id. I'm sure you can get this without permissions along with other basic data such as name and gender etc.
try:
https://developers.facebook.com/tools/explorer/?method=GET&path=YOURUSERID
and you'll see.As for showing the multi-friend selector in the page rather than as a popup, I've not done it myself but usually you can specify the display parameter, e.g.
&display=page (rather than display=popup
Also, I think you have to use the JS SDK to do this and not PHP:
http://developers.facebook.com/docs/reference/dialogs/requests/
Also, if you want to send notifications to your user's friends then you will require permissions to do so.