Running an FQL query using Facebook's Javascript SDK

后端 未结 2 1598
臣服心动
臣服心动 2021-01-28 16:25

This is my query:

select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1

and I need t

2条回答
  •  别那么骄傲
    2021-01-28 16:34

    Execute query via FB.api-

    FB.api("/fql?q="+encodeURIComponent('{your-query}'), function(response) {
      if (!response || response.error) {
         console.log('Error occurred: '+response.error.message);
      } else {
         console.log(response);
      }
    });
    

提交回复
热议问题