How to log in to facebook with test user from Android SDK

Viewed 203

I want to test the game requests feature and therefore I use test users. I want to login to my Android app with a test user that I created.

I been trying to use the AccessToken.setCurrentAccessToken method as follow:

AccessToken.setCurrentAccessToken(
                    new AccessToken(
                            testAccessToken,
                            context.getString(R.string.facebook_app_id),
                            testUserId,
                            null,
                            null,
                            null,
                            null,
                            null)

            );

But when I try to initiate the game request dialog it ask me to login with username and password, and when I do, it won't show the dialog anymore, not showing any errors in the log.

How can I log to my app as a test user, if possible I prefer to only provide the token and user_id

2 Answers
Related