Android me / invitable_friends facebook api get short id
I have a list of invitable_friends, I have below data
{
"id": "AVnRyTe6jbT3TdDNmQQJx1vYFRWt2GPx7zRxNsBiyOOaqVYQhU--1sNQ4gaIy_uDNg8e44-dXTVoSeUakW4lremIeDzLU5O0FRTtoZ7tkZo3cA",
"name": "Marianne Abinguna",
"picture": {
"data": {
"is_silhouette": false,
"url": "..."
}
}
But I want to get a short Facebook id like 100009555113xxx
. Any help is appreciated.
+3
source to share
1 answer
You cannot get the user id (app) with invitable_friends
. The only way to get user ids is to use /me/friends
. Of course, you only get friends who have approved your app as well.
It is useless to get user IDs as you are allowed to use invitable_friends
to invite friends (to play with the Canvas implementation). You can just use the invite token for this.
+4
source to share