I'd like to integrate one of my Drupal site with Facebook API. One of my questions is:
- after a user login my Drupal site
- how can my s开发者_如何学运维ite tell whether the user:
- has
Like
d one of my Drupal pages or not - and redirect the user to a different page based on
Like
d/Not yetLike
d
- has
Thanks!
You can use "Facebook Connect" module for easing connection to facebook. After this you can use graph api:
$fb = facebook_client();
$response = $fb->api('/me/likes');
print_r($response);
精彩评论