Handling big user IDs returned by FQL in PHP

后端 未结 6 2206
时光说笑
时光说笑 2020-11-29 09:30

I\'m using FQL to retrieve a list of users from Facebook. For consistency I get the result as JSON. This causes a problem - since the returned JSON encodes the user IDs as n

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 10:08

    This (preg_replace('/("\w+"):(\d+)(.\d+)?/', '\\1:"\\2\\3"', $json);) worked for me (for parsing result from facebook api)

提交回复
热议问题