Reputation: 3602
Is there a way of detecting the user mobile device or at least know if the user is also using Facebook on a mobile device?
Upvotes: 1
Views: 3385
Reputation: 1554
Read the Mobile Device Filtering section on the below url:
https://developers.facebook.com/docs/guides/games/custom-muti-friend-selector/
You should do a Graph API request like the below:
GET https://graph.facebook.com/USER_ID/?field=devices
Just want to add that the field
parameter didn't work for me, but fields
works. So you can try the below url alternatively (I would suggest to try it first).
GET https://graph.facebook.com/USER_ID/?fields=devices
And do not forget you will need an access_token
GET https://graph.facebook.com/USER_ID/?field=devices&access_token=....
Upvotes: 3