Get FB user id of an invitable friend - facebook

In my js facebook app, I'm retrieving all the invitable friends of a user. This return an array of obects containing:
Their name
Their profile picture
An invite token
However, I want them to be able to send a message to this invitable friend, therefore I need the user id of this user. Would their be a way to get this?
Cheers!

You can get user ids of your friends by sending that invitable tokens to facebook Apprequest. In AppRequest's responce you will get a list of key "to" that contains the user ids of friends who has been invited by you. Thank You.

Related

Facebook get invited friends id

I am able to get list of inviteable friends using this https://developers.facebook.com/docs/graph-api/reference/v2.2/user/invitable_friends.
But I am not getting ids of Facebook friends.
Or if it is not possible Can I get list of invited_friends?
I want to show friends as "invited" if user has invited them.
You get an invite token, not the ID of the users. The invite token is only valid for a short time, so you cannot use it to identify users later. There is no way to get a list of invited friends either.
In api v2.x, we cannot fetch the user frienda ids. In previous api version, we could fetch all fb friend ids. Invited friends ids was been saved on app server and filter that out from all friends to show invited icon. But in latest version this solution will not work, as there is no call available to fetch friends ids.

how to identify an invitable friend after he authenticates a app

According to https://developers.facebook.com/docs/games/requests/v2.4#invites
, I can get recipient ID of those invitable friends by the api below:
http://graph.facebook.com/<REQUEST_OBJECT_ID>_<USER_ID>?access_token=APP_ACCESS_TOKEN
(For an invitable friend we only get an request id for each friend like AVmdFg56QlT-FpSbrAFheEa9aY4d-kFz6uyAIxlt... instead of his actual user id)
But I found the recipient ID I get is different from the actual user id. (I compare them after the user authenticates my app.)
My application needs to track those invitable friends in an "activity" object, then when an invitable friend actually authenticate the application, I can add him to the activity that invites him. I want to identify these invitable friends by their ID, since the id is different, so it seems this doesn't work.
Is there any other way to get actually user id? or maybe I should identify them in another way.
The current workaround I come out is identifying them with REQUEST_OBJECT_ID.

how to get Facebook taggable friends Email Ids

I am using Facebook Javascript sdk to get logged in user contacts {Name ,Email}
according to recent update in user_friends we can only get friends of the users who also uses the same app. so i am trying to get user taggable friends in taggable friends we can get user friends id and name but not friends Email. is there any posibility to get taggable friends Email Id from their Id
No, there isn't. All friends_* permissions have been removed. Taggable friends nodes do not contain the email address.
All friends_* permissions have been removed.
See
https://developers.facebook.com/docs/apps/changelog#v2_0_permissions
https://developers.facebook.com/docs/graph-api/reference/user-taggable-friend/
https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends/

How to get all email id's of friends which are in friendsList from facebook

I am new to iphone.my question is How to get all email id's of friends which are in friendsList from facebook while using Graph API in iPhone? I am able to get all the pictures,name,first name and last name of the friends which are in friends list except the email id's how can we do this If any body know this please help me.IF any body provide some code for this it will be helpful for me....
You can't, e-mail addresses aren't available via API for friends due to privacy risks.
See the facebook Permissions Reference.
It is simply not possible to get the email addresses of Facebook users other than the user of your app (ie. the person who authorizes your app and for whom you get an access_token), not even Friends of the user. Even extended permissions won’t help here.

Can you lookup friends of friends with the Facebook graph API?

My app needs to generate a list of friends for the logged in user, as well as the friends of the friends. The logged in user has authorized the app. So I have no trouble getting their friends. When I make the /friends/ call to the API using one of the friends' IDs, I get this error message:
Can't lookup all friends of [FB ID]. Can only lookup for the logged in user or the logged in user's friends that are users of your app.
I knew that the public visibility of one's friends is a configurable setting for each individual user, but if I understand this message correctly it means that you simply cannot do what I'm trying... ever.
Question #1: Is this true? Is there simply no way to lookup someone's friends' friends?
Question #2: If it's not possible, how do sites like Glassdoor.com manage this exact functionality?
You cannot get the friends of friends of the person who is using the app.
Glassdoor.com sends invitations to the user's friends and when someone accepts, they simply get his friends since he becomes a user of their app.