php - How to friend a test user that does not have app installed? -


using facebook developers site editing roles of test user, able make friends using 2 test users, 1 app installed , 1 without.

i have created 2 facebook test users using graph api. if both users have app installed can make friend connections between them using graph api , user's access tokens. if create 1 test user app installed , 1 without app installed user without app installed not have user access token. how can friend these 2 users programmatically without them both having accesses token?

for api work, need access token each test user.

see http://developers.facebook.com/docs/test_users/

making friend connections

you can use api make friends connections test user other test users of app. provide api creating friend request accepting friend request. enables developers create several friend connections between test users via api itself, without having log-in test user accept requests.

api

https://graph.facebook.com/test_user_1_id/friends/test_user_2_id?
method=post &access_token=test_user_1_access_token

https://graph.facebook.com/test_user_2_id/friends/test_user_1_id?
method=post &access_token=test_user_2_access_token

the first call should made access token of test_user_1_id. creates friend request test_user_1_id 

test_user_2_id. second call should made access token test_user_2_id , confirm request.

response: true on success, false otherwise


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -