Send Friend request with facebook graph api in iphone - iphone

I am creating iphone app with facebook graph api. I am able to get list of my friends.. Any body knows how to send friend request to any user ?
and I am also trying to get particular FriendList ,,,
searched this Documentation
But how can I get this FriendList ID ???
/FRIENDLIST_ID

The Facebook Graph API doesn't support adding friends.
To get a list of their friend lists, you need read_friendlists extended permission. Then, you can call https://graph.facebook.com/me/friendlists which will return all of their friends lists, with a name and the friend list id you are looking for. You can test this with the graph explorer (check box for read_friendlists permission).

Related

Facebook Graph API : find friends in a place

I use graph API Facebook to get list of a place I have been there (https://graph.facebook.com/myuserid/feed?with=location) and return place id. And I want to know my facebook friends that ever been there too by place id. Is it possible?
This is not really available in the Graph API. What is possible is to get the friends which have been tagged at a specific place_id.
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page.context/friends_tagged_at
But even there you have the restriction that
Only friends who use the requesting app will be returned.

Get Facebook Friendlist (only read)

I'm developing an app which is super important to get the user's friends.
I just need to get a list of friends (Avatar and name) I do not require any more information or want to do anything with that data, you simply get a list of friends.
With the new change in Facebook it is impossible?
Regards!
See point 3.) of
https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
/me/friends returns the user's friends who are also using your app
In v2.0, the friends API endpoint returns the list of a person's friends who are also using your app. In v1.0, the response included all of a person's friends.
There are two key use cases where apps need access to non-app friends: tagging and inviting. In v2.0, we've added the Taggable Friends API and the Invitable Friends API to support these flows.

Get all Facebook friends that like a specific page

is there an easy way to get all Facebook friends that like a specific Facebook page?
I know that there is this site here
https://www.facebook.com/browse/friended_fans_of/?page_id=245323855526590
Where you can type in the page_id and get all friends that like this. But is this also possible with the Graph API? Or would I need to go every friend of a user, using the correct permission and THEN check if the user likes a specific page? I couldn't find an API Endpoint in the API Reference of Facebook

Facebook Graph v2: Request attenting friends from event

With Fb Graph v2 it isn't possible anymore to get a list of friends, {user-id}/friends only will only return any friends who have used (via Facebook Login) the app making the request.
A found solution would be {user-id}/taggable_friends, but this will not return an uid, so it is not possible to compare this list with {event-id}/attendings.
So to me it seems that with die new Open/Closed Graph Api it's not possible anymore to provide this feature to users of my app.
Is there any solution?
After extensive research it turns out that there's no possibiltiy to get attending friends from events with Fb Graph v2. The feature request friends information on FB was removed on purpose in Fb-Graph v2.
Friends request will always only return any friends who have used (via Facebook Login) the app making the request.
Graph API Reference /{user-id}/friends
For furhter information see this so-answer.

fetching list of friends using facebook 2.0

is there any way to fetch list of friends using facebook 2.0 API?
I was reading this upgrade from the API and it seems it is quite difficult to fetch the friends now,
but I have seen 2 permissions
read_friendlist
user_friends
Is their any way to fetch list of friends? and what about the widgets that get friends from facebook, will they go down?
In v2.0 of the Graph API /me/friends returns the user's friends who also use the app. You need to be granted the user_friends permission in order to get even app-using friends.
There is no way in v2.0 to get the full user's friends.
However, you may use the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends API or the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends APIs to get all the user's friends with tokens than can be used for tagging and inviting.
the read_friendlist perm doesn't get you a list of the user's friends, it gets you the list of a user's friendlists which may be used to build a custom privacy selector when publishing stories to Facebook.
As of 4/30/2014, you can only retrieve the friends who also use the app.
There are, however, specific methods for apps in the 'Game' category for inviting friends.
https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/