views:

150

answers:

1

Is there a way to determine if the current user is a fan (now: likes the page) using facebook connect?

I know this is possible in the REST api, but I would like to be able to just use connect instead.

+1  A: 

First you need to log the user in with Facebook connect and the Javascript SDK.

Then in Javascript you can use FB.api to call the Graph API.

FB.api('/me/likes');

This requires the user_likes permission to be granted when they login.

http://developers.facebook.com/docs/reference/api/user

Erik Nedwidek

related questions