• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

Facebook API

Hi All,

Is it possible to get the facebook like information using the API?

In particular the movies


Thanks in adv
0
detox1978
Asked:
detox1978
  • 7
1 Solution
 
detox1978Author Commented:
Yeah i saw that post which is what prompted me to ask can you get the movie likes.

In that example you can only access users after they have users accept the application.  But there are millions who have the likes on public display.
0
 
detox1978Author Commented:
I saw this post which used SQL and the response said you can access Movies;

http://stackoverflow.com/questions/6528850/get-all-of-a-users-likes-all-of-them-with-fql
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
detox1978Author Commented:
0
 
gattyttoCommented:
$feed = $facebook->api('/me/feed');
 $profile = $facebook->api('/me');

foreach ($feed['data'] as $entry)
{
  //do some filtering.. example from stackoverflow:
  //$isStatusUpdate = array_key_exists('message', $entry) and $entry['from']['name'] == $profile['name'];
  if (array_key_exists('likes', $entry))
            $likes = count($entry['likes']);
}
0
 
detox1978Author Commented:
I've never used the facebook API or FQL.  so will need more help getting that to work.
0
 
detox1978Author Commented:
Done a bit of reading up on it and i can access my friend movie likes via;


https://graph.facebook.com/ user_id /movies?access_token=


but cant access public profiles this way.  Any suggestions on how to access the public profiles?
0
 
detox1978Author Commented:
Bit more digging and i can access my and my friends movies via;

https://api.facebook.com/method/fql.query?format=XML&access_token=myToken&query=SELECT page_id FROM page_fan WHERE uid=%user_id%

Is there a way to change it so i can see public movie likes?
0
 
detox1978Author Commented:
thanks for the information provided.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now