Hi,
i have a problem with the configuration of sfMelody.
When i insert this code into function executeIndex of my module
$this->getUser()->connect('linkedin');
i get this error
Fatal error: Call to undefined method Token::getAllStatuses()
I post my app.yml
melody:
create_user: false # create a new user if not logged when you connect to a service
redirect_register: false # you can redirect to a register form or anything else by specify
# a valid route like "@user_register"
linkedin:
key: xxxxxxxxxxxxxx
secret: xxxxxxxxxxxxxxxx
callback: @melody_linkedin # or absolute url
provider: linkedin #like google, facebook -optional if 'name' config key is the name of the provider
request_token_url: https://api.linkedin.com/uas/oauth/requestToken # override the url - for OAuth 1 implementation only
request_auth_url: https://api.linkedin.com/uas/oauth/authorize
access_token_url: https://api.linkedin.com/uas/oauth/accessToken
and my routing
melody_connect:
url: /connect
param: { module: sfMelody, action: connect }
melody_linkedin:
url: /melody/linkedin
param: { module: sfMelody, action: linkedin }
I don't understand what is wrong.
Can you help me please?
Thank you
alessandro
Hi,
i have a problem with the configuration of sfMelody.
When i insert this code into function executeIndex of my module
$this->getUser()->connect('linkedin');
i get this error
Fatal error: Call to undefined method Token::getAllStatuses()
I post my app.yml
melody:
create_user: false # create a new user if not logged when you connect to a service
redirect_register: false # you can redirect to a register form or anything else by specify
# a valid route like "@user_register"
linkedin:
key: xxxxxxxxxxxxxx
secret: xxxxxxxxxxxxxxxx
callback: @melody_linkedin # or absolute url
and my routing
melody_connect:
url: /connect
param: { module: sfMelody, action: connect }
melody_linkedin:
url: /melody/linkedin
param: { module: sfMelody, action: linkedin }
I don't understand what is wrong.
Can you help me please?
Thank you
alessandro