duanjian9148 2013-02-05 00:34
浏览 575
已采纳

从他们的FB ID获取Facebook用户电子邮件

I have spent hours looking for a solution and have finally given up. I'm hoping someone can help me.

Basically, I have an iPhone App where users can sign in with Facebook. When they do this their Facebook ID is sent to the server and is used as their userID (instead of their email, if they sign in with email). Now, if I want to email new users when they register/sign-in for the first time, how can I get the facebook user's email from the ID sent to the server. I do have email permissions from Facebook, but I have no idea how to get the user's email from their ID alone.

Is this possible?

  • 写回答

2条回答 默认 最新

  • douti6740 2013-02-05 02:31
    关注

    Instead of sending the user_id to your server when they authenticate on your app, send the access_token. You can then query the API with that token and get all of the data they've authorized you to have.

    Bonus: It's almost impossible for someone to spoof a valid access token issued to your app.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作