BrownEyes
BrownEyes

Reputation: 2287

PHP Get Facebook username?

Is it possible to get a php page to display "Leave a comment, '%fullname' " without having to use that method that the user has to grant permission for the app, can I do it in another easier way (maybe even without using the app method) that doesn't interrupt with the user's experience when browsing through pages?

Upvotes: 0

Views: 2126

Answers (1)

andyrandy
andyrandy

Reputation: 74014

There´s a very simple answer to that: No.

Without authorization, you cannot get any personal data of the user. But there are several Social Plugins, you might want to try them: https://developers.facebook.com/docs/plugins/

If you know the User ID, you can use this way (or the Graph API):

https://developers.facebook.com/docs/reference/plugins/fb:name/

But to get the ID, you still need to authorize the user.

Upvotes: 3

Related Questions