简体   繁体   中英

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?

How else can I get userId of the user currently using the application?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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