我创建了一个facebook应用程序并从Graph API Explorer生成令牌(过期1小时)。当我使用该令牌查看有关页面信息的信息时,该令牌会显示所有内容,包括Facebook喜欢计数likes
:
{
"id": "561485583979241",
"about": "smmadmin.com is your complete social media marketing partner which makes you go global with high engagement and interaction over your online profile.",
"can_post": true,
"category": "Internet/Software",
"checkins": 0,
"cover": {
"cover_id": "577141705746962",
"offset_x": 61,
"offset_y": 0,
"source": "https://scontent.xx.fbcdn.net/hphotos-xpa1/t31.0-8/s720x720/10623331_577141705746962_2427585332498063845_o.jpg",
"id": "577141705746962"
},
"has_added_app": false,
"is_community_page": false,
"is_published": true,
"likes": 1678,
"link": "https://www.facebook.com/smmadmin.official",
"name": "Social media marketing administrator",
"talking_about_count": 4,
"username": "smmadmin.official",
"website": "http://www.smmadmin.com",
"were_here_count": 0
}
我使用以下方式交换令牌以延长令牌到期时间
https://graph.facebook.com/oauth/access_token?client_id=CLIENT_ID&client_secret=CLIENT_SECRET&grant_type=fb_exchange_token&fb_exchange_token=MY_CURRENT_TOKEN
现在,当我使用此令牌查看页面信息时,这仅显示有限的信息:
{
"name": "Social media marketing administrator",
"id": "561485583979241"
}
花了我一整天但什么也没得到。有什么想法吗?
答案 0 :(得分:0)
用户access_token的到期时间将设置为永不停止,一旦您的应用获得批准我认为。此内容仅限于某些权限。