Some public wall posts missing in facebook api response - facebook

I use the facebook api to crawl post from one page wall. The post will be published by random facebook users. The posts are shown on a landingpage.
That work's very fine for the first dev tests. But since we have switch into a live version (now random user write posts) where are some posts that are not in the facebook api's response.
My first thought was that the privacy setting of the post is not public. But then I shouldn't see it when I am logout.
Why I didn't see that few posts? Have someone a tip?
$url = '/' . $pageId . '/feed?fields=from, message, id, link, type, created_time, updated_time, shares, object_id,comments.limit(1).summary(true),likes.limit(1).summary(true)&since=' . $since;

Try adding &filter=stream to your call.
Facebook will defaults to a "Top Story" feed which can hide some objects due to a low "score". This will force the return to be in a "Most Recent" style feed where all objects will be shown and in chronological order.

My Idea: Some posts are missing in the api because of the privacy setting of facebook user? Maybe because the profile is not visible for non-facebook users? The publicity of the posts on facebook wall is always public when i look at the facebook wall. Have somebody experience with that?

Related

How can I make my timeline with Graph API?

I've studied Facebook API for several hours, and googled lots of pages. But I can not find the way get posts list just like my timeline on Facebook app.
I would like to make a Web app that show my timeline posts just like Flipboard. I found an API to get my "story" and "my friends list". But I can not even imagine how to retrieve my friend post that shown on my timeline.
Is it impossible to replicate my timeline on my web app? Only Flipboard can do that? Do you have any hint?
To access the current User's News Feed use the "User/Home" request as described in the API Documentation.
In order to gain access to the User's News Feed you will be required to gain the "read_stream" permission. For information on how to request the appropriate permission, read the Login, authorization and permissions section of the Getting Started guide.
The request to me/home will return an array of News Feed items, which are comprised of statuses, pictures, likes, etc. You can see an example of the result by using the Graph API Explorer.
Compare the results to your Timeline and they should be nearly identical (currently I believe Ads/Promoted Posts are excluded from the API)"
Play around with the Graph API Explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fhome
I had to change the permissions within the App and specifically give myself 'read_stream' access, but once that was complete I was able to run a '/me/home' Graph API GET Request and return a representation of my timeline. Good luck!
You can get the timeline this way:
$fb = new Facebook('{config}');
$fb->setDefaultAccessToken('{getAccesstoken}');
$request = $fb->get('/me?fields=feed.limit(10000){link}');
//
$graphObject = $request->getGraphNode();
return $graphObject;

Get all pictures and related comments from a Facebook Group page

I need to get all picture and their related comments which has been made to a particular facebook group page. How can I achieve this through facebook api?
Sure, you just need to make a request to graph.facebook.com/GROUP_ID/feed
Example here: https://developers.facebook.com/tools/explorer?method=GET&path=173972555961507%2Ffeed
The Graph API is really easy to figure out. You have the base url (graph.facebook.com) and then you can make requests to any object on facebook (user, page, group, checkin, etc) by just calling graph.facebook.com/OBJECT_ID. It's all on the front page: https://developers.facebook.com/docs/reference/api/

Unable to post links to an FB Event page using the Graph API

We are trying to publish to the feed resource of an event using the Graph API. What happens is it seems to ignore any link that we post. It also does not seem the Graph API supports any option for posting a photo to the wall of an event.
We make the call to the event feed using the following parameters:
link='http://rfid-social-media.odinrfid.com/photo?photoId=000000000000000000102107'
name='John at Facebook Party'
message='Test Message 2'
caption='What a great time'
And we publish against the url:
https://graph.facebook.com/EVENT_ID/feed
The request response does go through successfully, but the link does not show up in the UI.
We can post a link to a regular page using the Graph API without issue. It does show in the UI with the link, thumbnail, caption, etc, all as it should.
Thanks..
This is a Bug and its reported and marked as confidential
With the below text and its also contain security hole
bug report link
Below is my bug report text.
Other details on this report are shown to Facebook employees only
I recently attempted to post on an event's wall using the Graph API, but only the message is posted; Everything else is not showing. e.g.
Link
Picture
etc
There is one more big thing that the post doesn't show; That this post is post "via a Facebook app"
Note: posting on a page or user wall worked and also normal messages posted on an event 's wall.
The most important thing is when the post is shown on the event's wall "it does not show that its posted by a Facebook Application".
This is very dangerous; For example I can make an application and post nonsense on a user's wall. People will think that this is posted by the user.
Thank you so much for creating this question
For posting a photo to an event it seems to be a FB bug, subscribe and up the repo count so it gets attention
https://developers.facebook.com/bugs/225316074217855?browse=search_4f2f7576c5bc32d87041759

What is the API for Facebook 'profile stream' aka wall posts?

Is there an API call, and if so, which call to get the 'posts to my wall from myself and others' on Facebook? It seems like it could be filtered out of the Facebook stream API, but it's not clear how that works to me.
This link seems to imply it's possible:
http://developers.facebook.com/news.php?blog=1&story=225
You want to do an FQL query like this:
SELECT actor_id, message FROM stream WHERE source_id = <user id> limit 50
You will probably want to select a few more fields, you can see what is available here: http://wiki.developers.facebook.com/index.php/Stream_%28FQL%29
Here it is.
Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=...
https://developers.facebook.com/blog/post/465
You can publish stories to people who like your Open Graph Page the same way you write a Facebook post from your own wall. The stories appear in the News Feeds of people who have clicked the Like button on the Open Graph Page.
You can also publish using our API. If you associate your Open Graph Page with a Facebook app using the fb:app_id meta tag, you can publish updates to the users who have liked your pages via the Graph API.
First you need to get an access token for your app.
Check out the blog post, it covers everything you need.

Can you subscribe to a facebook page via rss?

I have created a page and I would like users to be able to subscribe using rss (similarly as twitter). The only possibility I see is a subscription to notes, not the wall. Any ides how this can be done?
There is no RSS feed for Profile Walls due to the complexity, permissions and the amount of posts to walls.
There is only RSS for notes:
Example:
http://www.facebook.com/feeds/notes.php?id={target_user_id}&viewer={viewer}key={key}&format=rss20
This works for personal pages, but I don't think it works on other pages: To get everything on your wall (not just your own status posts), go to your notifications page and select RSS at the top where you have the options of getting either Text Message alerts or an RSS feed of what's on your wall.
For every page on facebook the RSS url is:
https://www.facebook.com/feeds/page.php?format=rss20&id=xxxxxxx
Where xxxxxxx is the page id. for example the ID for ubuntu page is 6723083591. so
https://www.facebook.com/feeds/page.php?format=rss20&id=6723083591
is the RSS feed to that page.
mauris answer while may have been valid in '09 it is possible to get the page feed :-)