
Untitled
By: a guest on
Jul 24th, 2012 | syntax:
None | size: 0.76 KB | hits: 11 | expires: Never
Facebook mobile login with PHP SDK
// Get User ID
$fb_id = $this->facebook->getUser();
// Get User Info
$user_profile = $this->facebook->api('/me');
// get mobile token
$fb_token = $this->input->post('fb_token');
$user_info = 'https://graph.facebook.com/me?access_token='.$fb_token;
facebook.request("me", new RequestListener() {
@Override
public void onComplete(String response, Object state) {}
@Override
public void onIOException(IOException e, Object state) {}
@Override
public void onFileNotFoundException(FileNotFoundException e, Object state) {}
@Override
public void onMalformedURLException(MalformedURLException e, Object state) {}
@Override
public void onFacebookError(FacebookError e, Object state) {}
});