duanmu1736 2013-08-12 07:15
浏览 51

Facebook - 使用图形API和PHP SDK发送好友请求(用户到用户)?

So I was wondering faecebook docs hasn't mention it in its official docs on Developers but I have seen the graph call on blogs but it works (that's the weird thing)

https://graph.facebook.com/me/friends?method=post&uids=< USER ID>&access_token=< Acccess Token>

The respond is

{
   "error": {
      "message": "(#200) ",
      "type": "OAuthException",
      "code": 200
   }
}

Is this possible to do? if yes, How can I do it with PHP SDK? any idea is accepted

  • 写回答

1条回答 默认 最新

  • doudi1750 2013-08-12 07:34
    关注

    You can use the Friends Dialog. To integrate you can use javascript as-

    FB.ui({
      method: 'friends',
      id: USER_ID
    }, function(response){});
    

    OR, a URL redirect as-

    https://www.facebook.com/dialog/friends/? id=USER_ID &app_id=APP_ID &redirect_uri=REDIRECT_URI

    For more details: Friends Dialog

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分