来自网址的Facebook ID

编程入门 行业动态 更新时间:2024-10-28 00:28:50
本文介绍了来自网址的Facebook ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

给出一个Facebook网址,例如 facebook/cnn ,有什么方法可以获取该页面的ID不足以刮取吗?

Given a facebook url such as facebook/cnn, is there any way to get the ID of that page short of scraping it?

推荐答案

使用图形API进行此操作更好(并且合法).只需执行对graph.facebook/cnn的API请求,并从响应中获取ID.

It is better (and legal) to do this with graph API. Just perform API request to graph.facebook/cnn and get id from the response.

这是cnn的响应:

{ "id": "5550296508", "name": "CNN", "picture": "profile.ak.fbcdn/hprofile-ak-snc4/hs178.ash2/41813_5550296508_728_s.jpg", "link": "www.facebook/cnn", "category": "Company", "website": "wwwn\nwww.ireport\n", "username": "cnn", "company_overview": "TRIVIA FROM THE CNN TOUR...", "products": "CNN US...", "likes": 1689936 }

更多推荐

来自网址的Facebook ID

本文发布于:2023-11-01 07:29:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1548667.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网址   Facebook   ID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!