Hi, I can successfully call the function Cloud.SocialIntegrations.searchFacebookFriends but it does not return any friends. This is what I did:
- added my app to developers.facebook.com
- added a test user on Facebook who is already a friend of me
- for my developer account and the test user: Called Cloud.SocialIntegrations.externalAccountLogin with permission 'read_stream'
- called Cloud.SocialIntegrations.searchFacebookFriends
The resulting list is empty. Any suggestions?
Note: I got a message "Some of the permission low have not been approved by Facebook" but I am unsure if it has something to do with it since the Facebook app is still in developer mode this is normal.
Also, I read some posts that the function only returns first 10 results and the option to increase this is missing. Is this still true?
facebook.permissions = ['read_stream','email']; Cloud.SocialIntegrations.searchFacebookFriends(function (e){ if (e.success) { console.log('Success:\n' + 'Count: ' + e.users.length+' '+JSON.stringify(e)); } else { alert('Error:\n' + ((e.error && e.message) || JSON.stringify(e))); } });both users have external_accounts data on appcelerator (external_accounts-> external_id, external_type, token)
result:
Success: [INFO] : Count: 0 {"users":[],"success":true,"error":false,"meta":{"code":200,"status":"ok","method_name":"searchFacebookFriends","page":1,"per_page":10,"total_pages":0,"total_results":0}}