Login to Facebook using Oauth 2.0
I set e开发者_运维技巧mail & pass account in a file php, i want it login automatically when i call the file from browser or comand line, then i get the state for success or failed login, Could you help me, please!
There are two options:
Use the Facebook PHP SDK to perform the authentication: https://developers.facebook.com/docs/reference/php/
Use the Server side flow outlined in this Reference (the code sample is in PHP) : https://developers.facebook.com/docs/authentication/server-side/
精彩评论