【问题标题】:Is there any way to get more information of user like friends birthday,current_location?有什么方法可以获取更多用户信息,如朋友生日、当前位置?
【发布时间】:2012-01-10 03:09:02
【问题描述】:

有没有什么方法可以在一个图形api调用中获取用户的朋友信息+用户的个人信息,使用所有权限。

权限:user_birthday,friends_birthday,friends_current_location
我正在做这个图形 api 调用:https://graph.facebook.com/me?birthday,friends?fields=birthday,current_location&access_token.

这对我不起作用。有什么方法可以在一个 api 调用中访问上述提供的信息。 ?

【问题讨论】:

    标签: facebook api facebook-graph-api


    【解决方案1】:

    好吧,我的错!

    它有效。使用此调用获取生日。您也可以将 current_location 添加到字段中:

    $funnel = $facebook->api('/me/friends?fields=name,gender,birthday&access_token='.$at);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-26
      • 1970-01-01
      • 2012-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-04
      相关资源
      最近更新 更多