是否可以通过API端点获取Facebook的URL抓取工具的结果? [英] Is it possible to get the results of Facebook's URL scraper via an API endpoint?
问题描述
我试图查看他们的文档,但是没有找到任何可以帮助我回答问题的信息.我正在尝试从Facebook的Scraper获取图像和URL的描述.我看到他们有一个很好的资源,它显示为:https://graph.facebook.com/728207680562365
,但是我希望它更具动态性,可以这么说,用我的URL向Graph API发出GET请求将返回响应.有谁知道这是否可能?
I have tried to look into their documentation, but haven't found anything that would help me answer my question. I am trying to get the image and the description of a URL from Facebook's Scraper. I see they have a nice resource that displays this as this: https://graph.facebook.com/728207680562365
but I wanted this to be more dynamic, so as to speak, making a GET request to Graph API with my URL would return the response. Does anyone have an idea if this is possible?
推荐答案
Closest thing you'll get to is Facebook's URL node: https://developers.facebook.com/docs/graph-api/reference/v2.1/url.
默认情况下,og_object
返回以下字段:
By default the og_object
returns the following fields:
- id
- 网址
- 类型
- 标题
- 说明
- updated_time
但是,这并不汇总所有字段.您可以像这样获得其他特定字段:
This doesn't sum up all the fields however. You can get other specific fields like so:
https://graph.facebook.com/v2.1/?id=<<yoururl>>&fields=og_object.fields(image)&access_token=<<yourtoken>>
使用真实网址:(替换访问令牌)
Using a real URL: (substitute an access token)
https://graph.facebook.com/v2.1/?id=http://sauce-dev.myshopify.com/products/flower-print-jeans&fields=og_object.fields(image)&access_token=<<yourtoken>>
这篇关于是否可以通过API端点获取Facebook的URL抓取工具的结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!