Facebook Graph API - get ID for a URL?

后端 未结 6 908
小鲜肉
小鲜肉 2020-12-05 10:37

This seems like a pretty obvious, basic thing to expect from the Graph API, but I\'m having serious difficulty with it. All I want to do is get the ID for any particular URL

6条回答
  •  没有蜡笔的小新
    2020-12-05 11:32

    Try FQL for this;

    http://graph.facebook.com/fql?q=select%20url%2C%20id%2C%20type%2C%20site%20from%20object_url%20where%20url%20%3D%20%22http%3A%2F%2Fkriek.hu%2F%22
    

    returns:

    {
       "data": [
          {
             "url": "http://kriek.hu/",
             "id": 497425470154,
             "type": "link",
             "site": "kriek.hu"
          }
       ]
    }
    

    For more information, see object_url.

    I hope it helps!

提交回复
热议问题