PHP Classes

2 way authentification with Oauth class

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  2 way authentification with Oauth class  >  (Un) Subscribe thread alerts  
Subject:2 way authentification with Oauth class
Summary:2 way authentification with Oauth class
Messages:2
Author:Deta Mihai
Date:2013-04-02 10:44:51
Update:2013-04-02 23:40:04
 

  1. 2 way authentification with Oauth class   Reply   Report abuse  
Picture of Deta Mihai Deta Mihai - 2013-04-02 10:44:51
hello,
i have a question, can the oauth class be used to make a 2 way authentication with the facebook server?
i want to send the user credentials directly to the server and get back some basic information about the user.
is it possible?

  2. Re: 2 way authentification with Oauth class   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-04-02 23:40:04 - In reply to message 1 from Deta Mihai
Yes, that is the purpose of OAuth.

The way it works is that first the user grants your application access to their profile and your application gets a token that is stored in the access_token class variable.

With that token you can send calls to Facebook API, even when the user is not present, to request whatever information you need.