How to get friends wall information through FBGraph or FBConnect? - ios

I am Using FBGraph API of Facebook for iPhone, here i get friend list, my profile, my feeds and other values but how can I get My Friends Wall Data through this API.
My Question is that How can i Get My Friends wall information though this API for iPhone.

The documentation covers this:
See the "feed" section on this page for details.
e.g. https://graph.facebook.com/123456/feed
where 123456 is the user id
Note. You'll need to ensure you have the read_stream permission.

https://graph.facebook.com/user/feed i think this is the graph path for getting feed info.

Related

Is it possible to retrieve the _whole_ friendlist of a user using the iOS Facebook SDK?

I am reading through the docs and other questions on Stackoverflow. Am I getting this right that it is actually impossible to retrieve the whole friendlist of the user? The permissions user_friends only refers to friends that have previously logged into the same app with Facebook.
I am wondering if I just oversee the solution or if it is indeed impossible to get access to a user's friends because there is no API that would allow to do so?
Since graph API v2.0, this is no longer possible:
See
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friends#readperms
This will only return any friends who have used (via Facebook Login) the app making the request.
https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
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.
As Tobi says, in V2.0 this is no longer possible.
But, if you want to get only name and profile picture, then its possible!
Check taggable_friends
Note that The id that returns this API call isn't unique, it may change for every request for same user, so you can't use that field to identify user, you can use it ONLY for tagging.

Getting full list of facebook friends through graph API

I have IOS app for that login is through Facebook, For some feature I need full list of friends.
With current version of Graph API calling "me/friends" only returns person's friends who also use the app.
So now getting full friends list not at all possible or is there any way to get full list.
Also I need to invite my friends to use the app.
Note: App is not a Game app.
Thanks in Advance.
Despite what the earlier comments on this question might tell you, this is 100% possible with the me/taggable friends endpoint in Graph v2.0.
However there are three things worth noting:
Facebook is strict on the usage of this endpoint, so you'll need to get your use of it approved by the review team.
Taggable friends can only be used in the context of "friends you're about to tag on Facebook.com". This endpoint cannot be used for any other purpose.
When you query me/taggable_friends, the id returned for each user is NOT their Facebook id. It is a short-lived token that can be passed via the API to instruct Facebook to tag that user.

Use paging in facebook api

I have been trying to fetch the list of friends. The sample code with IOS facebook SDK gives all the friends i currently have but when i try to fetch list manually using graph api . I get only a few. Then i read under permissions "This will only return any friends who have used (via Facebook Login) the app making the request." My questions is
1. how come sample IOS facebook code can fetch all the friends and when i make graph api call i get only few. The call i am using "me/friends" ?.
Will it be possible to get friends ids or emails?
As of 4/30/2014, you can only access the friends who also use the app, and you have to explicitly ask for the user_friends permission to even get that.

iOS Facebook API fetch data from timeline using GRAPH API

We have a facebook account. That account 'Liked' 3 open facebook pages. When you login to that facebook account from your browser you can ofcourse see all the posts from those 3 pages on your news feed.
What I want to know is - can I somehow fetch all the data I see on my accounts news feed?
Im not asking how to do it, just is it possible.
I was doing some research, and on facebook.developers they do mention about nodes, which can be users or groups, but it is unclear to me are those groups that I made, so when I login to my mobile app i Actually login with that group account, or they meant that I can get data or other groups out there ?!
Facebook has documentation using FQL queries to GET the users news feed, take a look here
https://developers.facebook.com/docs/reference/fql
What you are looking for is called stream...

iOS Facebook SDK post to friend's wall using standard dialog

Is it possible to post on friend's wall using the standard feed dialog or I have to create my own dialog for this?
UPDATE:
I know that it is possible to post to a friend's wall directly using requestWithGraphPath. But I'm trying to figure out if I can use the facebook dialog for this. For example Draw Something seems to be doing just that (see screenshot below). However, I tried sending 'target_id' as well as 'to' and neither works. Does anybody know how to do that?
I found the solution. Just add "to" parameter with ID of the user you want to post to. I tested it works.
UPDATED ANSWER :
facebook annaunced that by 6.06.2013 it will not be possbile to post a friends wall via GraphAPI
https://developers.facebook.com/roadmap/#february-2013
Removing ability to post to friends walls via Graph API We will remove
the ability to post to a user's friends' walls via the Graph API.
Specifically, posts against [user_id]/feed where [user_id] is
different from the session user, or stream.publish calls where the
target_id user is different from the session user, will fail. If you
want to allow people to post to their friends' timelines, invoke the
feed dialog. Stories that include friends via user mentions tagging or
action tagging will show up on the friend’s timeline (assuming the
friend approves the tag). For more info, see this blog post.
This seems to be a very similar to iOS Development: How can I get a Facebook wall post to show in the friend's news feed?
Maybe that will help, as I think #kgutteridge has the right answer.

Resources