Monday 5 June 2017

What is the best way to get the photo from a facebook story_fbid link

I am trying to get a photo from facebook using the graph api. When I have a link such as "https://www.facebook.com/permalink.php?story_fbid=1234567890&id=1234", I am not having much success. I know this may be associated with a profile picture or something, and the way that I have been doing it could be deprecated in the latest version. I think the solution I found online was to use userId_postId to get the picture. That solution does not always work for a link such as the example, and I am tired of debugging the irritating facebook api.

Using the explorer, I get this:

{
  "error": {
    "message": "Unsupported get request. Object with ID '1234567890_1234' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
    "type": "GraphMethodException",
    "code": 100,
    "fbtrace_id": "someuselessid"
  }
}

I am using version 2.8. Please help my sanity.



via jmcgui05

No comments:

Post a Comment