facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 908 forks source link

How to get the userName via GraphRequestManager? #665

Closed alvaro1728 closed 4 years ago

alvaro1728 commented 4 years ago

My dependencies:

"react": "16.9.0",
"react-native": "0.61.3",
"react-native-fbsdk": "^1.0.4",

My question:

When I'm on my FB page and I click on a user's name link, I get sent to https://facebook.com/userName and I see that user's profile. So now that I'm using the GraphRequestManager API to get the user's information, I'd like to get the "userName". I get an "id" and the "name", but I don't know how to get the "userName" that would allow me to navigate to the user's profile page.

Thanks! Alvaro

gmertk commented 4 years ago

Hi @alvaro1728, this isn't really about the react-native-fbsdk as it isn't possible with the underlying Graph API: