Facebook PHP SDK. Get the username and profile of my app users without requiring a connection to Facebook.

First of all, thanks in advance for reading. I have already posted this question on facebook forums, but after a couple of hours I am not getting any answers.

I have this application where the user can select a piece (as in a puzzle). After the user selects a piece, he is redirected to the login page on facebook, and then returns to the application, then I save the user ID and its selected part in the database. At the moment, I'm fine ... but the problem arises when ...

If someone sees the application, he should be able to see fragments and OWNERS INVESTMENT (name and profile picture).

The problem is that the user has not yet allowed the application (facebook authorization page), I can not use the facebook API to get users who have already allowed the application (because I need an access token and an access token is provided only to those users who have allowed the application) .

So, in short:

I need: get the name and profile of users who have already allowed the application, without authentication of all users.

PS: I tried to use the "Authentication as an application" parameter using PHP + libCURL, but it did not work (or I did it wrong).

P.S2: Sorry if I write errors, my speaking language is Spanish.

Thanks again ... LOT !!!!

+4
source share
1 answer

There is no authentication or TOS violation if you have identifiers as pic profile and name are public information

Evidence?? Right here in this JSON .

+9
source

Source: https://habr.com/ru/post/1335168/


All Articles