Retrieve the picture associated with a Facebook Graph API PlaceTag node without /picture edge?

喜夏-厌秋 提交于 2020-01-02 07:48:25

问题


I'm working with the latest version of Facebook's Graph API (v2.3).

I'm using the tagged_places edge on my user object to show a list of places where I've been tagged. According to the docs, this will include location tags on photos, videos, posts, statuses and links on my profile.

For each tagged place, I receive a PlaceTag node. According to the docs I can use the picture edge to retrieve the picture which was tagged in this location - presumably this only works when the post in question is a photo (rather than status or link, etc).

However it seems that the picture edge was removed from v2.3 of the Graph API. When I perform a request for the picture against a PlaceTag, I get the following response:

{
  "error": {
    "message": "(#12) picture edge for this type is deprecated for versions v2.3 and higher", 
    "type": "OAuthException", 
    "code": 12
  }
}

The docs don't provide an alternative for this removed edge.

How can I retrieve the picture which was associated with a specific PlaceTag? Is this possible with Graph API v2.3?

Thanks

来源:https://stackoverflow.com/questions/29871314/retrieve-the-picture-associated-with-a-facebook-graph-api-placetag-node-without

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!