开发者

Drupal 6 site + Facebook new Graph API intros?

开发者 https://www.devze.com 2023-01-24 03:39 出处:网络
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

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

精彩评论

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