function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
james2000james2000 

Is there a way to show profile images without a Salesforce session?

I have an app that uses the REST API with OAuth 2.0 to query for and display Chatter data. The problem I'm having is that profile images don't appear unless the user is logged in to Salesforce. Since an OAuth 2.0 access token is only scoped for API use, is it possible to get profile images to display without having an active session?

pkolyvanispkolyvanis

James, Check section "Chatter Profile Images" in: http://wiki.developerforce.com/index.php/Getting_Started_with_the_Chatter_REST_API  

 

xhrPhotoURL = instanceURL + photoURL + "?oauth_token=" + accessToken 

 

Worked for me.

james2000james2000

Thanks. I was assuming that was part of the Chatter REST API. I actually need something that will work now outside of just developer orgs since the Chatter API is not GA. Do you know of any way besides the Chatter API?

cloudcodercloudcoder

FYI, the Chatter REST API is GA with Winter '12