[英]How to get facebook app online users
I like to know if there is a way to count the users that are online at one time on an application. 我想知道是否有一种方法可以对一个应用程序一次在线的用户进行计数。
They have the app installed and they are online. 他们已经安装了应用程序,并且在线。
I have a PHP facebook app using the FBML. 我有一个使用FBML的PHP facebook应用程序。
Thank you! 谢谢! Adrian
阿德里安
You have to take the extended permission of user_online_presence to get your desired result. 您必须获得user_online_presence的扩展许可才能获得所需的结果。 You can take this extended permission like this
您可以像这样获得此扩展权限
$loginUrl = $facebook->getLoginUrl( array( 'canvas' => 1, 'fbconnect' => 0, 'req_perms' => 'email,user_online_presence' ) );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.