开发者

Drupal 6 site + Facebook new Graph API intros?

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:
    1. has Liked one of my Drupal pages or not
    2. and redirect the user to a different page based on Liked/Not yet Liked

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜