python - Link Facebook messenger sender id with Facebooks fbid -
i have django
app allows users login using facebook. allows users communicate app using facebook messenger. users id
logging in , messenger different. want able link 2 together.
i've found doc should connect 2 accounts keep getting errors https://developers.facebook.com/docs/messenger-platform/connecting-accounts
i'm using
get /{user-id} ?fields=name,is_payment_enabled,ids_for_apps,ids_for_pages &access_token=[page_access_token] &appsecret_proof=[appsecrete_proof]
keep getting following error
{u'error': {u'message': u"unsupported request. object id '1569748269763653' not exist, cannot loaded due missing permissions, or not support operation. please read graph api documentation @ https://developers.facebook.com/docs/graph-api", u'code': 100, u'type': u'graphmethodexception', u'fbtrace_id': u'beurwndcwuu'}}
any idea doing wrong?
i had similar issue before when building chat app in django using messenger platform api.
first make sure facebook app published. see if on dashboard of app in facebook developers account. should "this app public , available users" underneath app title.
my issue turned out actual facebook page's permissions. able rid of graph error updating 2 of page permissions here (go facebook page -> settings ):
make sure these 2 set shown. make sure facebook page published(you see @ top of settings).
should go.
Comments
Post a Comment