Information about current user in facebook

后端 未结 2 514
青春惊慌失措
青春惊慌失措 2021-01-26 22:15

I am trying to get facebook userid of the users currently logged in. I used this below piece of code ang got error \"Uncaught OAuthException: An active access token must be used

2条回答
  •  面向向阳花
    2021-01-26 22:52

    You should use recent PHP-SDK and read documentation which shows exactly how to authenticate the user and get his details.

    Exact answer you need already present in PHP-SDK examples

    You may also refer to question Get ID from Facebook PHP SDK which have answer to your question too.

提交回复
热议问题