Facebook-Graph-API get post by post id

i.dragutinovic

I'm having problem fetching post by post id using Graph API. In Graph API reference (https://developers.facebook.com/docs/reference/api/post/) it says that:

Querying without the read_stream permission will return only the public view of the data (i.e. data that can be see when the user is logged out).

I'm able to open https://www.facebook.com/franzee/posts/10151947780174121 without logging in to Facebook, but when I try to access this post using Graph API or Graph API Explorer I get the following error

{
    "error": {
        "message": "Unsupported get request.", 
        "type": "GraphMethodException", 
        "code": 100
    }
}

I am using valid token and Graph API call, and I'm getting results when fetching single posts from group or public page. Why is then error message returned when I try to fetch post by post id even though the post is visible when I'm logged out?

Igy

You can't access a user's posts without a user access token from a user who can see the posts - even if a post is marked as 'Public', that means Public to Facebook users, not completely public via the web and API - You still need to provide the access token of the Facebook user you're fetching the posts on behalf of

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Facebook API GET recent post ID

From Dev

Facebook Graph API Post with a place

From Dev

Facebook graph api find post from object_id

From Dev

How to delete post in facebook by id using php, graph API

From Dev

Get public post from Facebook's Graph Search API

From Dev

Facebook Graph API. How to get comment from post

From Dev

Get one facebook post by ID

From Dev

How to post a video using Facebook Graph API

From Dev

Post photo on Facebook group using graph api

From Dev

Post Picture Facebook - Graph API - PHP

From Dev

Post Image to the Facebook using Graph API

From Dev

Post Image to the Facebook using Graph API

From Dev

Post photo on Facebook group using graph api

From Dev

Facebook Graph API: Find graph object from post URL

From Dev

How can i get the facebook post id?

From Dev

Get post details by post id using open graph

From Dev

GRAPH API:how to get hyperlinks from a post

From Dev

Get URL (Link) for facebook post using post ID

From Dev

Facebook API post: How to get larger thumbnail?

From Dev

Facebook API, get page post link (PHP)

From Dev

Facebook API: Get all likes of a post

From Dev

Facebook Graph API: Making public post on user's page

From Dev

Facebook Graph API does not return full post data

From Dev

Facebook Graph API post message with link to page's wall

From Dev

facebook graph API endpoint for getting "likes, shares, comments" for post(s)

From Dev

Facebook Graph API PHP SDK v4 - Post on Page

From Dev

Post message with picture to facebook page/feed using graph api

From Dev

Facebook Post Call to Action button using Graph API

From Dev

Facebook Graph API not returning all the fields of a perticular post

Related Related

HotTag

Archive