dongzha0813 2012-12-24 17:06
浏览 92
已采纳

生产环境错误:无法解析为有效的用户ID

I finished a working app that allows my user to login with Facebook then simultaneously post to their blog website and a Facebook page wall on submit. This works fine in my development environment (localhost) but when I pushed it up to production I get the following error when trying to post to the pages wall:

1.234523452345234E+14 does not resolve to a valid user ID

The number shown is almost identical to the page (not user) id of the page I am attempting to post to. I assume since you must act as the page when performing actions on the page that the page is the user. Any ideas why this would break in a new environment? I did update my app configuration to point to the correct canvas urls.

  • User can successfully login.
  • I can access the user id and page id.

I noticed the page id is getting reformatted: 12345234523452340 becomes 1.234523452345234E+14

  • 写回答

1条回答 默认 最新

  • dse323222 2012-12-24 17:33
    关注

    Convert it back to the whole number:

    number_format(1.234523452345234E+14,0,'','')
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大