Facebook应用没有提示认证 [英] Facebook app without prompted authentication

查看:111
本文介绍了Facebook应用没有提示认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图找出一种使iframe的Facebook应用程序(内置PHP)工作的方式,而不需要单独的身份验证方法。我已经登录到Facebook,但由于某些原因,我仍然看到所有这些Oauth通知从PHP SDK中的示例。

I've been trying to figure out a way to have my iframe Facebook app (built in PHP) work without requiring separate authentication methods. I am already logged into Facebook, but for some reason I still see all these Oauth notices from the example in the PHP SDK.

我需要的唯一数据甚至公开可用没有他们添加我的应用程序。我正在寻找收集他们的Facebook ID(因为这是比赛,我们需要一个唯一的ID进行跟踪),他们的名字和(可选)他们的电子邮件地址。

The only data I need is publicly available even without them "adding" my app. I am looking to collect their Facebook ID (since this is a contest, we need a unique ID for tracking), their name and (optionally) their email address as well.

问题是,除非我已经知道他们的Facebook用户名,否则我无法使用API​​获取公开信息。任何关于我如何获得登录用户名或公共句柄的想法,以便我可以获取其余的信息?

The problem is, I cannot use the API to fetch the public information unless I already know their Facebook username. Any ideas on how I might be able to get their logged-in username or public handle so I can then fetch the rest of the information?

无论什么原因,Oauth是

For whatever reason, Oauth is driving me completely insane with Facebook today.

Sidenote:

我做过管理在技​​术上让Javascript SDK可以运行,它将一些信息提供给PHP供使用。唯一的问题是,一旦我登录,我看不到数据。如果我刷新,那么它会显示。不确定为什么刷新是必需的,因为我不希望用户实际上必须点击刷新才能继续该应用。

I did manage to technically get the Javascript SDK operational, which fed some information to PHP for use. The only issue there is that once I login, I don't see the data. If I refresh...then it shows up. Unsure why the refresh is required, as I wouldn't expect a user to actually have to hit refresh in order to proceed with the app.

推荐答案

我想你有点困惑,Facebook将共享用户名,ID,全名或电子邮件而不用用户明确授权/允许您的应用程序在电子邮件的情况下,请求电子邮件权限!)。

I guess you are a bit confused here, Facebook will NOT share the username, id, full name or email without the user explicitly authorizing/allowing your application (and in the case of the email, requesting the email permission!).

阅读官方帆布指南获取更多信息:

Read the official Canvas Tutorial for more information:


为了获得默认的
应用程序可用的所有用户信息(如用户的Facebook ID),用户必须授权
您的应用程序。

In order to gain access to all the user information available to your app by default (like the user's Facebook ID), the user must authorize your app.

这篇关于Facebook应用没有提示认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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