Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:17:38+00:00 2026-06-10T11:17:38+00:00

I want to integrate fb into my website and pull work_history. I’ve literally gone

  • 0

I want to integrate fb into my website and pull work_history. I’ve literally gone through every forum question and read the fb pages. From what I’ve read you need a token to access the info. Do you also need to run a fql query? How can I get the token to get friends work_history? Below is what I tried.

$user = $facebook->getUser();
$token  = array($facebook->getAccessToken());

if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $user_profile = $facebook->api('/me');

    $fql = "SELECT uid, name, work_history, FROM user WHERE 
    uid = ' . $user.'";
        $ret_obj = $facebook->api(array(
                                   'method' => 'fql.query',
                                   'query' => $fql,
                                 ));


    echo '<pre>Pic: ' . $ret_obj[3]['work_history'] .'</pre>';                           


 } catch (FacebookApiException $e) {
    error_log($e);
    $user_profile = null;
  }
}

if ($user) {
  $logoutUrl = $facebook->getLogoutUrl();
} else {
  $loginUrl = $facebook->getLoginUrl(array(
  'scope' => 'user_work_history',
  'redirect_uri' => 'http://www.myweb.com')

  );
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:17:40+00:00Added an answer on June 10, 2026 at 11:17 am

    The “user” table doc https://developers.facebook.com/docs/reference/fql/user/ says that work_history is deprecated and you should use the column work instead. Also, you need the user_work_history permission to access the data.
    FWIW, I ran this query – SELECT uid, name, work FROM user where uid = me() and it works for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to integrate facebook like button into my website . My website has
i want to integrate twitter into my iphone application so i read this good
I'm looking to integrate a light-weight forum feature into an existing GWT website. The
I'm trying to integrate a Tumblr blog into a website. Specifically I want to
I want to integrate Google Custom Search into my website searching box. The problem
While trying to integrate Yahoo Media Player into my own website, I want to
I'm trying to integrate pinterest into a website. I want to add pin it
I want to integrate facebook login into my web application developed using Spring MVC.
I have an RSS feed and I want to integrate each item into it
I want to integrate the zxing barcode scanner into my app. I have followed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.