Ad

How To Get User's Facebook Username Or Id?

- 1 answer

I am building an application in flutter where you can click on someone's name and it'll redirect you to his profile, and I thought of using user's facebook username or id. From what I learnt, facebook username is no longer available through facebook graph api, and the id you get is app-scoped id that differs from real facebook id. The only thing I found regarding this issue was the link field through the graph api, but it requires app review, which I don't completely understand how it's done, but even if I had access to the link, it says that it's only available if that person is your friend on facebook, which contradicts with the purpose of my app, is there any way to achieve this goal? I know it seems duplicated, but I only found really old answers and nothing actually helpful.

Ad

Answer

Looks like you can retrieve the user_link and other permissions through the facebook api, it still requires App Review.

Ad
source: stackoverflow.com
Ad