简体   繁体   English

Facebook PHP SDK - 获取我的应用用户的用户名和个人资料图片,无需Facebook连接

[英]Facebook PHP SDK - Get user name and profile picture of my app users without requiring facebook connect

First of all, thanks in advance for reading. 首先,提前感谢阅读。 I've already posted this question in the facebook forums but after a couple of hours I'm not getting any responses. 我已经在facebook论坛上发布了这个问题,但几个小时后我没有收到任何回复。

I've got this app where an user can choose a piece (like in a puzzle). 我有这个应用程序,用户可以选择一块(如拼图)。 After the user picks a piece, he is redirected to the facebook authorize page and then returned to the app, then I save the user ID and his chosen piece in the database. 在用户选择一个片段后,他被重定向到Facebook授权页面然后返回到应用程序,然后我将用户ID和他选择的片段保存在数据库中。 At this point I've got everything alright... but the problem comes when... 在这一点上,我已经把一切都好了......但问题出现的时候......

If anyone see the app, he should be able to see the pieces and the PIECES OWNER INFO (name and profile picture). 如果有人看到该应用程序,他应该能够看到碎片和PIECES OWNER INFO(名称和个人资料图片)。

The problem is if the user has not allowed the app yet (facebook authorization page), I can't use the facebook API to get the users who have already allowed the app (because I need an access token and the access token is given only to users who has authorized the app). 问题是如果用户还没有允许该应用程序(Facebook授权页面),我无法使用facebook API来获取已经允许该应用程序的用户(因为我需要访问令牌并且仅提供访问令牌)对已授权应用程序的用户)。

So, in short: 简而言之:

I need: get name and profile picture of users who have already authorized the app, without authenticating all users. 我需要:获取已经授权应用程序的用户的姓名和个人资料图片,而无需对所有用户进行身份验证。

PS: I was trying the "Authenticating as an App" option with PHP+libCURL but didn't work (or I did it the wrong way). PS:我正在尝试使用PHP + libCURL进行“作为应用程序进行身份验证”选项但是没有用(或者我做错了)。

P.S2: Sorry if I have writing mistakes, my speaking language is spanish. P.S2:对不起,如果我写错了,我的口语是西班牙语。

Thanks again... A LOT!!!! 再次感谢...很多!!!!

No authentication nor breach of TOS required if you have the IDs, as profile pic and name are public information 如果您拥有ID,则不需要身份验证或违反TOS,因为个人资料照片和姓名是公共信息

Proof?? 证明?? Right Here in this JSON . 就在这个JSON中

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

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