Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Set the Connection ProfileUrl please :) #12

Open
agentgt opened this issue May 2, 2012 · 0 comments
Open

Set the Connection ProfileUrl please :) #12

agentgt opened this issue May 2, 2012 · 0 comments

Comments

@agentgt
Copy link

agentgt commented May 2, 2012

I sort of rely on the profileUrl being set. I haven't tried this but it should work.

org.springframework.social.foursquare.connect.FoursquareAdapter.setConnectionValues(Foursquare, ConnectionValues)

public void setConnectionValues(Foursquare foursquare, ConnectionValues values) {
    FoursquareUser user = foursquare.userOperations().getUser();
    values.setProviderUserId(user.getId());
    values.setDisplayName(user.getFirstName() + " " + user.getLastName());
    values.setImageUrl(user.getPhotoUrl());
    //My addition here.
    values.setProfileUrl("https://foursquare.com/" + user.getId());
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant