如何使用graph api创建url_like?
此URL显示为(http://example.com)https://graph.facebook.com/http://example.com的计数
{
"id": "http://example.com",
"shares": 131086
}
但我没有检索计数,而是想使用Facebook Graph API创建一个类似的。
我相信你要做的是described here in the documentation。简短版本是:
url -F 'access_token=...' \
https://graph.facebook.com/313449204401/likes
注意:要创建而不是检索喜欢,请求需要是HTTP POST
而不是GET
,因为此服务具有RESTful architecture。