从Facebook图形API 2.4检索数据 [英] Retrieve data from facebook graph API 2.4
问题描述
任何人都可以使用Facebook的新Graph Api v2.4来帮助我检索数据, 以前我用的是这个网址-
Can anyone help me to retrieve data using new Graph Api v2.4 of facebook, previously I was using this url-
https://graph.facebook.com/ {user-id}/feed?limit = 1& ; locale = zh_CN& access_token = {access-token}
https://graph.facebook.com/{user-id}/feed?limit=1&locale=en_GB&access_token={access-token}
以前,它提供所有数据(以json格式提供数据视图)
Previously it provides all the data, (provide data view in json format)
"id": "12345_67890",
"from": {
"name": "xyz",
"id": "123456"
},
"message": "hwregdsfdsf",
"link": "http://example.com/wordpress/",
"name": "example.com",
"caption": "example.com",
"icon": "https://www.facebook.com/images/icons/post.gif",
"actions": [
{
"name": "Comment",
"link": "https://www.facebook.com/12345/posts/67890"
},
{
"name": "Like",
"link": "https://www.facebook.com/12345/posts/67890"
},
{
"name": "Share",
"link": "https://www.facebook.com/12345/posts/67890"
}
],
"privacy": {
"value": "EVERYONE",
"description": "Public",
"friends": "",
"allow": "",
"deny": ""
},
"type": "link",
"status_type": "shared_story",
"application": {
"category": "Business",
"link": "http://example.com/wordpress/",
"name": "him_test_app",
"id": "562********27561"
},
"created_time": "2015-07-09T14:17:56+0000",
"updated_time": "2015-07-09T14:17:56+0000",
"is_hidden": false,
"subscribed": true,
"is_expired": false
}
但是现在它仅提供
"message": "hwregdsfdsf",
"created_time": "2015-07-09T14:17:56+0000",
"id": "12345_67890"
}
好的,它已经实现
在Joomla的各种漂亮模块中实现 通过 Webkul ,看起来很棒,在这里看看
Its implementation in various beautiful modules of Joomla by Webkul, looks great, have a look here
- Facebook Wall
- Multi facebook Wall
- Multi Social Tabs
- Facebook Event
推荐答案
您可以手动指定要从Grpah API返回的字段.
You can manually specify the fields you want to be returned from the Grpah API.
请参见
例如
https://graph.facebook.com/{user-id}/feed?limit=1&locale=en_GB&access_token={access-token}&fields=id,from,message,link,caption,icons,actions,privacy,status_type
这篇关于从Facebook图形API 2.4检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!