Facebook Graph API-Fetching status messages - facebook-graph-api

I am fetching walls of friends using the graph API in my .NET application.. For some friends i get there complete wall..but for the others few posts are missing...
For some friends status messages set by them on their wall are not coming with the JSON data...while messages posted by others on their wall are being retrieved correctly. When i look at their walls from the facebook website, all the posts are visible. But for some reason they are not being retrieved when i use the API.
What could be the cause of it?

Since the Graph API respects user privacy settings, it is possible that the friends who are posting to your friends' wall have changed their application privacy settings so that their posts are not accessible by third-party applications.

Related

Facebook Graph API /me/home Friends Posts

I'm trying to get the home feed for a user, but all the posts by my friends are no longer there (only feeds by Pages show). This happened near the v2.2 release. Are we no longer able to get a user's news feed with their friends posts? https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%2Fhome&version=v2.0
friend permissions are gone with v2.0 - so i assume this happened in April 2014 when v2.0 was introduced, for privacy reasons you can´t get anything from friends who did not authorize your app too. Wouldn´t it be weird if you could just see the posts of friends in the stream of the authorized user, without the friends being able to control this?
Check out the changelog for more information: https://developers.facebook.com/docs/apps/changelog
It looks like friends' news are back on the /me/home end point

Corona SDK Facebook returns app_scoped_id and not my normal user_id

If I have understood it correctly Facebook made some changes so it returns app_scoped_id instead of the normal user_id.
The problem I have now is that no other function seems to work.
I receive an I id from Facebook, and it's the same each time I login, but if I use facebook.request("me/friends") the table is empty, if I use facebook.showDialog("friends") it
What do I need to do in Corona SDK to get this to work? Before I could use these functions after having setup them up in Facebook.
I read this thread explaining why this happen but it doesn't explain how to solve it in Corona SDK: Get Users App-Scoped user id in Facebook Graph API
As of Facebook API v2.0, friends list (/me/friend) returns ONLY user's friends who are already using your application. This limitation applies to all apps that are on v1.0 mode too.
If you're looking to get friends for tagging actions: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends
If you're looking to get friends for inviting to a Facebook Game on Canvas: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends
Cheers!

How to post on a friends wall with GraphAPI?

I'm using GraphAPI for posting to a friend's wall but I'm unable to do it.
I'm trying the below link:
http://graph.facebook.com/friendID/feed
Can anyone help me how to post to your friend's wall?
As of february, you can't post content to a friend's wall using the API - see here: https://developers.facebook.com/roadmap/completed-changes/#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.
You can post links using the FB.ui function w/ the 'to' parameter set to a friend's id, however.
See the following change from 6th March 2013, posted on the list of completed changes in the Facebook Developers' Roadmap:
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.

disabling facebook comments with actions field on wall posts

My app allows users to interact with each other for a unique purpose. As part of this experience I post on user's wall so his/her friends can know about the post from user and they can come to app for interaction. But in this case, users may just end up commenting on the facebook page itself and my app will not have any knowledge of this interaction. To avoid this, I am wondering if I can disable comments on this post. Graph API documentations states that I can use the "actions" field on wall post for such purpose. I tried that with various combinations of Comment and empty link or link that takes the user to my app etc. But I notice that no matter what I set, facebook always shows link to the wall post instead of what I tried to put.
Any thoughts on how to achieve this purpose?
Thanks.

Some friends on the Facebook website do not appear in the Graph API

I was playing with the Graph API recently and I made the following simple call:
https://graph.facebook.com/me/friends
For me, this returns 461 entries. On my profile page on the Facebook website, I have 465 friends. On the following page, I have 477 friends:
https://www.facebook.com/me/friends
I've discovered that 12 of my friends has deactivated their profiles, which would account for the difference between the 477 and the 465. However, that still does not explain the difference between the Graph API call and the number that appears on my profile.
This leads me to my questions:
Is there a way to retrieve a list of inactive friends via Facebook API?
What other reasons are there aside from user inactivity that a friend connection would not appear on the Graph API? Is there a user's privacy setting for such control?
Thanks!
This is absolutely normal behavior. There is an option in Facebook that let's you disable all apps. Reference: Facebook: Disable all apps If they have that turned on, your app to not be able to reach them.
As of finding inactive friends, the answer is NO, you can't not. They are not a part of the Facebook public platform and therefore you don't have access to them.