简体   繁体   English

Facebook应用:获取用户ID的另一种方式(除了PHP-SDK)

[英]facebook app: alternative way of getting userid (other than php-sdk)

because of some bug, facebook php-sdk's getuser always return 0. Why is Facebook PHP SDK getUser always returning 0? 由于某些错误,facebook php-sdk的getuser始终返回0。 为什么Facebook PHP SDK getUser始终返回0?

How else can I get userId of the user currently using the application? 我还能如何获取当前正在使用该应用程序的用户的userId?

使用有效的访问令牌访问https://graph.facebook.com/me ,它将以JSON的形式返回当前用户的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM