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

  • Home
  • SEARCH
  • 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 7191787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:48:12+00:00 2026-05-28T19:48:12+00:00

I am accessing the Facebook Graph JS API, in order to display some of

  • 0

I am accessing the Facebook Graph JS API, in order to display some of the user’s favorite movies, music and so on. Now I want to access all the restaurants a user has liked. I didn’t find anything in the API-doc, that this is supported. So I think about parsing all the likes of a user like this:

   FB.api('/me/' + 'likes' + '?access_token+' + accessToken,
       function(response){
          for(var k=0; k<response.data.length; k++){
             // Do some stuff with the data
          }
    });

Is this the only solution or do you know something else?

How would you code this solution?

  • 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-05-28T19:48:13+00:00Added an answer on May 28, 2026 at 7:48 pm
       FB.api('/me/likes?limit=5000&access_token=' + accessToken,
           function(response){
              var restaurants = [];
              for(var k=0; k<response.data.length; k++){
                 // Do some stuff with the data
                 if(response.data[k].category=="Food/beverages")
                     restaurants.push(response.data[k]);
              }
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the difference between accessing user data with the Facebook Graph API ( http://graph.facebook.com/btaylor
Looking for some code to upload a photo to facebook using the Graph API
Possible Duplicate: Accessing numerical property in a json object Using the facebook graph api,
I have problem with accessing Facebook graph. I am using a Greasemonkey script. When
I've succeeded at accessing a Page's insights via: https://graph.facebook.com/ {pageID}/insights I've even managed to
After a user has logged in using Facebook I need to access their Facebook
For some reason, I'm suddenly having trouble accessing my test users via the graph.
This is the FB Url I am trying to access. https://graph.facebook.com/oauth/authorize?client_id=694aa71aed60fb9d79aae04b81ff27c8&redirect_uri=http://localhost/TestConnect/Facebook.aspx&scope=email,user_about_me,user_interests,user_likes,user_location,user_notes,user_education_hi It says The
I need to access some web api from my desktop application for authentication. For
Using Facebook Graph API and my app credentials I am able to retrieve a

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.