1
Vote

Make test users friends with each other broken

description

Hi there,
 
I've been trying to associate my test users with each other using the friends function and getting an error. Is it just me or is this a problem with either the API changing, or the app itself?
 
I've taken a look at the source and it seems to be correct and can't find an answer anywhere else.
 
Please help!

comments

eijisugawara wrote Aug 5, 2011 at 12:57 AM

Hi Mike-san,

I've not got the same error. Please delete all test users and try it again if you can.

mikeydelamonde wrote Aug 5, 2011 at 9:44 AM

Hello, and thank you for responding. I have done what you suggested and deleted and re-added all users. I still have the problem with the friends but have found out why. It is because only the first user has a user access token:

When the app calls: /169500069751383/accounts/test-users?access_token=169500069751xxxxxxxxxxxxx

it comes back with

{"data":[{"id":"100002764426191","access_token":"169500069751383|xxxaccess-tokenxxx","login_url":"https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=100002764426191&n=W7qZiEgBg3alALi"},{"id":"100002757945864","login_url":"https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=100002757945864&n=7uGzbs75Ojsfj6v"},{"id":"100002760166225","login_url":"https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=100002760166225&n=ATEDYELcL3dMYn4"},{"id":"100002768896005","login_url":"https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=100002768896005&n=XbxwnS28ZsBXorz"},{"id":"100002703465941","login_url":"https:\/\/www.facebook.com\/platform\/test_account_login.php?user_id=100002703465941&n=jM2gynajUOGSfW9"}]}

Therefore it works when the app adds other users, but when it tries to add the first user to the others it fails.

Any ideas on this?

Thanks for your help!

Mike

mikeydelamonde wrote Aug 5, 2011 at 9:48 AM

I see now that to get an access token you have to have your app accepted by the users, which makes sense I suppose! Problem solved..

wrote Feb 12, 2013 at 9:59 PM