A Perk Company

Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

how to bring back facebook friends using the same application ?
Started by shay3112 Dec 25 2013 04:01 AM

- - - - -
1 reply to this topic
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Enthusiast

  • 38 posts
  • Corona SDK


so i have a question, i want to bring back all the user friends on facebook that are using the same application

i have a facebook call that can bring back all the user friends (facebook.request( "me/friends" )) but the quesiton is how do i bring back all the users that are using the exaxt same app that i'm using .. ?



  • jonjonsson likes this

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 14,931 posts
  • Corona Staff

There is a field you can request that Facebook include in the friends request.  I had an app that did this:


            local params = {
                fields = "name,username,first_name,last_name,picture,installed"
            libFacebook.request("me/friends", "GET", params, onRequestComplete)


See the ",installed" in the fields list?


You can then look in the table of returned people and filter out people who don't have the installed value.