Quantcast
Channel: Facebook API - news feed with wall posts - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Facebook API - news feed with wall posts

$
0
0

I am fetching a user's news feed using the Facebook API and displaying some of the data on a page. However, I am having trouble with wall posts. The data returned by the API considers a wall post to be a "status" update by the user posting, and the data does not include a field to say who the wall post is written to. Is it possible to query an item to check whether it is a wall post or not? Or is there a way I can receive the name of the recipient?

Here is the code I am using to fetch the user's news feed:

FB.api('/me/home', function (response) { console.log(response) });

A wall post will just give me message (content of the wall post) and type of status. For example:

If Oliver wrote on John's wall, saying: "Hi", Facebook gives me:

{
    from: {
        name: "Oliver"
    },
    message: "Hi",
    type: "status"
}

There's nothing to tell me it is a wall post nor who the recipient is. The result does include some other arbitrary data but none of that helps (id, created_time, etc.)


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images