lundi 2 mars 2015

Understanding Facebook Graph API identifiers

While I do realize that the ids for graph api objects are not documented, I'm seeing some oddities which I'd like to understand.


I have an authorized app that polls a page's feed for new comments and it looks like I'm getting different ids for the same post. On first run I get a post with the id of:


1470990656482896_1553567768225184


Which is the id of the page and post joined by an underscore. The second poll which ran a few minutes later, I received the same post with a different id:


100008124617959_1553567768225184


Which is the user id of the poster and post joined by an underscore.


While I'd like to understand the inconsistency, the real problem is trying to access the post via the second identifier returns an Unsupported get request with the code of 100


The post is public and is accessible via both http://ift.tt/18hepzz


and


http://ift.tt/1N8U54d


Aucun commentaire:

Enregistrer un commentaire