XF 2.0 Add Connected Account

Finally, the problem was solved, through a pile of torment. The documentation does not describe how this should work correctly
PHP:
    public function getProviderKey()
    {
        return $this->requestFromEndpoint('response')[0]['uid'];
    }
Thanks to @Chris D, for the support and help to deal with this
 
Last edited:
PHP:
public function getProfileLink()
    {
        return 'https://vk.com/' . $this->requestFromEndpoint('response')[0]['screen_name'];
    }
And
PHP:
    public function getWebsite()
    {
        return $this->requestFromEndpoint('response')[0]['site'];
    }
The return value is all perfect, but when registered these values are not displayed in the profile
 
And one more question. The service in the API has the following structure:
- Application ID
- The secret key
- Public key
How can I specify a public key?
 
Back
Top Bottom