An active access token must be used to query information about the current user & OAuthException [code] => 2500

China☆狼群 提交于 2019-12-04 04:39:07

You're not providing the access token in the right way. It should be presented as the value of the access_token URL query parameter as in:

'https://graph.facebook.com/me/?fields=albums.fields(id,name,cover_photo,photos.fields(name,picture,source)),videos.type(uploaded)&access_token='.$_SESSION['facebook_access_token']

for clarity, without the specific fields:

'https://graph.facebook.com/me?access_token='.$_SESSION['facebook_access_token']
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!