Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a test user for a native iOS app?

I'm trying to test my native iOS app and I've been having huge problems with test users. Basically it seems that the normal graph based way of creating test users doesn't work for native apps. When I try I get the following response from the server:

{
    "error": {
        "message": "(#15) This method is not supported for native apps",
        "type": "OAuthException",
        "code": 15
    }
}

This seems to be supported by various posts on SO and a page on the old FB forums:

http://forum.developers.facebook.net/viewtopic.php?id=93086

People say that the only way to create test users for native apps is to create proper fake accounts on FB, which is against FB terms and conditions. Is this really my only option ? I can't believe the FB devs cannot support test accounts for native apps.

Anyone know of any legitimate way to create native app test users ?

like image 427
Martin Linklater Avatar asked Feb 15 '12 12:02

Martin Linklater


1 Answers

At the top of the developer documentation for test users, a GUI for maintaining test users is also mentioned.

In addition to the Graph API functionality described below for managing test users programmatically, there is also a simple GUI in the Developer App, available on your app's Roles page as shown in the screenshots below. It exposes all of the API functions described in this document.

For some reason I don't understand, the Graph API calls aren't available if your app has an 'App Type' (under Settings -> Advanced) of Native/Desktop. But you can use the GUI instead.

like image 151
Helen Williamson Avatar answered Nov 01 '22 13:11

Helen Williamson