Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class...
- public function fbsql_query($fbquery, $callback='') {
- $param = array('method' => 'fql.query', 'query' => $fbquery, 'callback' => $callback);
- $fqlResult = $this->facebook->api($param);
- return $fqlResult;
- }
- function getUserInfoFromFB($uid) {
- $varsToRequest = array(
- 'status',
- 'username',
- 'has_added_app',
- 'pic_small',
- 'is_app_user',
- 'pic_square',
- 'locale',
- 'uid',
- 'first_name',
- 'email',
- 'last_name',
- 'profile_update_time',
- 'birthday_date',
- 'timezone',
- 'sex');
- $fql = "select " . implode(',', $varsToRequest) . "
- from user
- where uid=" . $uid;
- $res = self::fbsql_query($fql);
- $this->user_data = $res[0];
- return $res[0];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement