bashan
bashan

Reputation: 3602

Detect user mobile device on Facebook graph API

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

Answers (1)

dangel
dangel

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

Related Questions