Get Users App-Scoped user id in Facebook Graph API

后端 未结 5 1417
借酒劲吻你
借酒劲吻你 2020-12-16 07:51

In advent of the new V2 Facebook Open Graph API, I need to make note of the logged in users \'App-Scoped\' user ID, in order to register the id with Parse in order to receiv

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 08:41

    1. If you created your facebook application before the introduction of graph API 2.0, It will continue to receive the canonical facebook user ID
    2. If you created your facebook application, after the introduction of graph API 2.0, It gives you app scoped id instead of the canonical id.

    In this case I assume your application is quite old.Therefor create a new app and it will give you the app scope id.

提交回复
热议问题