我有一个粉丝名称,例如:“Funny Vines”。此粉丝页面的真实网址为:https://www.facebook.com/funnyvinesofficalpage/
当我只有这个粉丝页面的名称(“有趣的葡萄藤”)时,如何获取/创建此URL?
感谢。
答案 0 :(得分:2)
您可以使用搜索API:
/search?type=page&q=Funny Vines&fields=name,link
文档:https://developers.facebook.com/docs/graph-api/using-graph-api#search
请记住,这是一次搜索,所以你不会只得到一个结果,显然:
{
"data": [
{
"name": "Funny Vines",
"link": "https://www.facebook.com/funnyvinesofficalpage/",
"id": "662605137102011"
},
{
"name": "Funny Vines",
"link": "https://www.facebook.com/FunnyVinesLovers/",
"id": "979586622060309"
},
{
"name": "Iligan Funny Vines and Pictures",
"link": "https://www.facebook.com/Iligan-Funny-Vines-and-Pictures-304142043018984/",
"id": "304142043018984"
},
{
"name": "Funny Vines",
"link": "https://www.facebook.com/vines6/",
"id": "433033710153363"
},
{
"name": "Funny Viral Vines",
"link": "https://www.facebook.com/Funny-Viral-Vines-1375072712767279/",
"id": "1375072712767279"
},
...