检查Facebook用户是否可以在他的朋友墙上发帖 [英] Check if a facebook user can post in his friends wall or not

查看:145
本文介绍了检查Facebook用户是否可以在他的朋友墙上发帖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所做的研究,我可以想出在fql查询中使用can_post。现在我如何找出用户的can_post值。我正在使用php-sdk并且已经获得许可发布到朋友的墙上,但是如果朋友已经禁用了在他的墙上发布,它将返回一个异常,这将使脚本停止。所以,如果我可以使用这个can_post值来检查他是否可以在发布之前发布。

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.

推荐答案

你可以得到使用fql can_post 字段,并返回true或false 。所以如果朋友已经停止在他的墙上发帖,那么在这种情况下, can_post 字段将返回false。所以这将有助于墙贴,取决于can_post ...

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...

这篇关于检查Facebook用户是否可以在他的朋友墙上发帖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆