I followed this guide: http://developers.facebook.com/docs/authentication/ on how to set up Facebook authentication using php (server side implementation). I can get the access token from Facebook, but how do I get the Facebook user ID that is logged in?
You must use the PHP version of facebook PHP: https://github.com/facebook/php-sdk/
See an example file so as not to get lost ... https://github.com/facebook/php-sdk/blob/master/examples/example.php
Facebook's graphical API is a little annoying ... so using this will be easier (at least for me)
The easiest way if your framework / sdk / whatever does not provide it for you is to request https: //graph.facebook.com/me? Fields = id & access_token = ....
Source: https://habr.com/ru/post/1344997/More articles:Downloading an STL set with pre-sorted data, C ++ - c ++Width of the first object traversal - jsonIs there an alternative version of the standard dictionary? - dictionaryWhat is the purpose of SELECT ... * FOR UPDATE *? - mysqlJPA error: duplicate key error while maintaining relationship - javaGiven the long-term costs of executing βstatementsβ and exceptions - javaImport external SVG (using WebKit) - javascriptAllow POST for "static" files on ASP.net development server - c #Problem installing Mac OSX Ruby on Rails - file not found / error with generating documentation - ruby-on-railsProper use of message queue in 2008R2 - c #All Articles