javascript - Possible to get user's photos in FB messenger extension using JS in webview? -
i have facebook chat extension webivew accessible via persistent menu button.
on webview load messenger extensions.js code , can query user's page-scoped id, permissions allowed, etc.
i'd able let user share photos, there way can access in js on webview? or on server. like:
curl -x "https://graph.facebook.com/v2.6/<page_scoped_user_id>?fields=photos,first_name,last_name,profile_pic,locale,timezone,gender&access_token=page_access_token"
except photos
field doesn't work of course:
{u'error': {u'code': 100, u'fbtrace_id': u'xxxx/xxxxx', u'message': u'(#100) tried accessing nonexisting field (photos) on node type (messengerpagescopedid)', u'type': u'oauthexception'}}
i have user_profile
, user_messaging
permissions currently.
so far have been able standard fields (listed here) work first, last, gender, etc.
i'm fine user needing allow more permissions (and clicking add something), wanted avoid non-messenger auth flow fb apps. assumed point of messenger make less friction in way.
i'm curious if i'm missing or if there isn't way other fb user data messenger chat extensions.
thanks!
Comments
Post a Comment