Check if a facebook user can post in his friends wall or not

孤街醉人 提交于 2019-12-12 05:00:59

问题


As far as I've done research I could come up with use of can_post in fql query. Now how can I find out can_post value of the user. I'm using php-sdk and have taken the permission to post to friend's wall but since if friend has disabled posting on his wall it would return an exception which would make the script stop. So, if I could use this can_post value to check if he can post before posting.


回答1:


You could get the can_post field using fql and that will return either true or false. So if friend has disabled posting on his wall, in that case also can_post field would return false. So that would aid in wall posting depending on can_post...



来源:https://stackoverflow.com/questions/10479123/check-if-a-facebook-user-can-post-in-his-friends-wall-or-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!