many of them are functions whose goals you will need to do, but this is a test that I wrote myself about autonomous flow:
$this->loginAsTestUser(); $oauth_uri = $this->fbURI() ->setPath('/dialog/oauth') ->addQueryData('client_id', self::RELL_APP_ID) ->addQueryData('redirect_uri', self::RELL_URL); $this->open($oauth_uri); $this->platform->tosApp(); $code = $this->getURI()->getQueryData('code'); $this->assertNotEmpty($code, 'No code returned in redirect url'); $token_uri = $this->fbURI('graph') ->setSecure(true) ->setPath('/oauth/access_token') ->addQueryData('client_id', self::RELL_APP_ID) ->addQueryData('client_secret', self::RELL_SECRET) ->addQueryData('code', $code) ->addQueryData('redirect_uri', self::RELL_URL); $this->open($token_uri); $this->assertRegExp( '/access_token=.+/', $this->source(), 'No access token returned in source');
source share