dongxuanjiao0795 2012-10-17 10:50
浏览 28

得到不在事件中的facebook朋友[重复]

Possible Duplicate:
Invite friends to event facebook api

How do i get all my friends that not are in my event? (not are invited)

right now i just have this, but it just show all friends.

$friends = $facebook->api('/me/friends');
    foreach ($friends as $key=>$value) {
       foreach ($value as $fkey=>$fvalue) {
          if ( is_numeric ( $fvalue['id'] ) ) :
               echo '<div class="friends"><table><tr><td><input type="checkbox" name="friends[]" value="' . $fvalue['id'] . '" checked="checked"/></td><td><img src="http://graph.facebook.com/' . $fvalue['id'] . '/picture" title="' . $fvalue['name'] . '"/></td><td><span style="color:#000"> '.$fvalue['name'].'</span></td></tr></table></div>';
          endif;
       }
    }
  • 写回答

1条回答 默认 最新

  • doujia1163 2012-10-17 10:57
    关注

    YOu can check if someone is invited with a http get (see: https://developers.facebook.com/docs/reference/api/event/ ) So first you get all the friends, then check if they are attending, if yes then don't show them, or show them in a grey color like facebook does, otherwise show them

    This is btw the answer which facebook gives: https://developers.facebook.com/tools/explorer/?method=GET&path=331218348435/invited/2503747

    评论

报告相同问题?

悬赏问题

  • ¥30 seata使用出现报错,其他服务找不到seata
  • ¥15 怎么实现输入一个要删除的数后删除后显示剩余数再输入再删除显示剩余数(语言-c语言)
  • ¥35 引用csv数据文件(4列1800行),通过高斯-赛德尔法拟合曲线,在选取(每五十点取1点)数据,求该数据点的曲率中心。
  • ¥20 程序只发送0X01,串口助手显示不正确,配置看了没有问题115200-8-1-no,如何解决?
  • ¥15 Google speech command 数据集获取
  • ¥15 vue3+element-plus页面崩溃
  • ¥15 像这种代码要怎么跑起来?
  • ¥15 安卓C读取/dev/fastpipe屏幕像素数据
  • ¥15 pyqt5tools安装失败
  • ¥15 mmdetection