facebook - Getting ids_for_pages from Graph returns empty -


i'm having trouble connecting people across apps , bots in messenger.

https://developers.facebook.com/docs/messenger-platform/connecting-accounts

i've associated developers facebook app (with facebook log in , messenger products) in business, page.

my objective in server being able identify messenger user log in user in app. when user go messenger have same experience in app. trouble is: when try ids_for_pages graph returns data empty, after user talks bot.

graph (v2.10)

/{user_login_id}/ids_for_pages?access_token={user_login_access_token}&appsecret_proof={appsecret_proof}

{ "data": [] }

when i'm using page scoped id i'm able ids_for_apps (great can use match user if user log in app), if user talks bot , goes app see no way me match user. investigated on business mapping api token_for_business necessary user node. great in app can't user token or user node page scoped id.

https://developers.facebook.com/docs/apps/for-business

am doing wrong? missing permission? bot live , has pages_messaging.

any guidance helps! thank time!

edit

as amuramoto said, using wrong access_token. must same used in ids_for_apps.

/{user_login_id}/ids_for_pages?access_token={page_access_token}&appsecret_proof={appsecret_proof}

putting here in case questions comes in future.

you aren't using right access token. example in docs show calls ids_for_pages requires page-scoped access token, not user access token.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -