• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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