如何将全局ID转换为应用范围ID [英] How to convert global ID to app scope ID
本文介绍了如何将全局ID转换为应用范围ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要知道一种通过编程方式将真正的用户ID转换为应用范围ID的方法
有没有吗?
非常感谢您
解决方案
您不能将实际ID转换为范围ID,而是:
- 该ID在一个应用程序中始终保持不变,只有新用户在应用升级到v2.x时才会获得一个作用域ID。
- 如果您需要在不同应用程序之间链接用户,请使用业务映射API: https://developers.facebook。 com / docs / apps / for-business
I have worked on admin system for my company's game. There are a page we opened to let user report problem. However the new system of facebook make us confuse with userID which changed for each app but the page still show only real facebook userID, which often differ from app scope ID
I want to know a way to convert real userID to app scope ID programmatically
Are there anyway to did it?
Thank you very much
解决方案
You cannot just convert real IDs to scoped IDs, but:
- The ID will always stay the same in one app, only new users will get a scoped id when the app gets upgraded to v2.x
- If you need to link users between different apps, use the Business Mapping API: https://developers.facebook.com/docs/apps/for-business
这篇关于如何将全局ID转换为应用范围ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文