theflowersoftime
theflowersoftime

Reputation: 2615

Get user name/picture in FB app

I'm tearing my hair out trying to figure this out. I only want a user's name and picture (such as you would see ready in a fb comment box on an external app). This info is fully available if I KNOW the user id (in this example, on line 58, they use what I assume is one of the FB devs, "Naitik": https://github.com/facebook/php-sdk/blob/master/examples/example.php).

If the username and picture are publicly available (as the code comment suggests), can I get this for the user landing on my tab app? It seems silly that I can get that info with the user's id but not otherwise. I don't care about bdays, emails, employment, likes, nothing. I just want the "publicly available" info (i.e. without getting an OAuth token).

Upvotes: 0

Views: 1811

Answers (1)

Jimmy Sawczuk
Jimmy Sawczuk

Reputation: 13614

What that documentation means is that if you have identified your user, you can know his/her name, gender, and picture. You still have to authenticate them to identify them, however (as in, get their UID), and after that, the picture and name are available to you.

Upvotes: 1

Related Questions