• Helius
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 10
    Replies

Hey everyone, I have a question about the Salesforce chatter Chat tool in the bottom right. The /apex/ page shows the content, and also the chat box. But it won't show when include an iframe on my actual site.

 

I notice I can set whether it's enabled or not on the apex page code " <apex:page showChat="true" showHeader="false" sidebar="false"> ". How do I achieve this? Do I need to include some sort of apex code in the page block?

 

Our company wants to switch to using the chat in salesforce, inside of an already built interface for managing data. We're not able to use salesforce completely, so I'm creating a slideout which will show a simple view of the chatter feed, and allow use of the chat.

  • October 10, 2013
  • Like
  • 0

Heya! Got a quick question. It has probably been answered too.

 

We have a widget calling feeds and it uses the username, password, and secret key to log in and grab the access_token.

I've got a "View and Comment" link to send the user to the /ID of the post and see the comments, etc. When you click that, salesforce asks the user to log in a second time.

How do I prevent it from asking me to log in a second time? Like, get access to the specific post /ID using the username/password/secret or access_token?

  • September 04, 2013
  • Like
  • 0

Heya! Got a quick question. It has probably been answered too.

 

We have a widget calling feeds and it uses the username, password, and secret key to log in and grab the access_token.

I've got a "View and Comment" link to send the user to the /ID of the post and see the comments, etc. When you click that, salesforce asks the user to log in a second time.

How do I prevent it from asking me to log in a second time? Like, get access using the username/password/secret or access_token? Even if it's just for that post.

 

Any ideas?

  • August 28, 2013
  • Like
  • 0

Hey all, got a few questions.

 

I'm making php curl calls to things like $instance_url . '/services/data/v28.0/chatter/feeds/record/0F9C0000000L1xzKAC/feed-items?limit=6, $instance_url being login.salesforce.com (I tried na8.salesforce.com, no difference). The time for this request like lke 2+ seconds. Shouldn't this be quicker? I am also right after it calling comments from another section of code and that doubles the load times.

 

I can replicate the slowness from multiple servers and networks.

Any suggestions?

 

Here is some sample code:


        //set Access Token given by salesforce oauth/oauth_callback
        $access_token = $_SESSION['access_token'];
        $instance_url = $_SESSION['instance_url'];


        if (!isset($access_token) || $access_token == "") { die("Error - access token missing from session!"); }
        if (!isset($instance_url) || $instance_url == "") { die("Error - instance URL missing from session!"); }


        //MAIN variables
        //set Url to use - Change ID to all group (https://na1.salesforce.com/services/data/v28.0/chatter/users/me/groups)
        $url =  $instance_url . '/services/data/v28.0/chatter/feeds/record/0F9C0000000L1xzKAC/feed-items?limit=6';
        // START OF CURLOPT // BEGIN FORMING CURL COMMAND
        $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_HEADER, 0);
            curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: OAuth $access_token"));
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($curl,CURLOPT_ENCODING,'gzip');
        //HANDLE THE RESPONSE
        $json_response = curl_exec($curl);
        $all_response = json_decode($json_response, true);
        curl_close($curl);

  • August 15, 2013
  • Like
  • 0

Is this possible? I'd like to use the chat feature Chatter has on my own site. If I can embed the tab into my own app just as it is in chatter, without having to code all of it myself and use the api, that would be awesome.

 

Has anyone seen this done?

Greetings, I'm wondering if someone can explain how this works. I'm calling feed-items from a specific group and I'd like to redirect the user of the app I'm building to the specific group page or feed-item page on clicking the text (if there is one for individual feed items).

 

I get things back like   "url" : "/services/data/v23.0/chatter/feed-items/0D5C0000017QoVpKAK", but I'm not sure how to format that so it loads the chatter site for the user. Using the instance_url and then that url section doesn't work, but I'm hoping the feed-item ID can be used or something.. Just ignorant of the format to use.

 

Hope that makes sense. Thanks!

Greetings, I'm wondering if someone can explain how this works. I'm calling feed-items from a specific group and I'd like to redirect the user of the app I'm building to the specific group page or feed-item page (if there is one for individual feed items).

 

I get things back like   "url" : "/services/data/v23.0/chatter/feed-items/0D5C0000017QoVpKAK", but I'm not sure how to format that so it loads the chatter site for the user. Obviously using the instance_url and then that url section doesn't work, but I'm hoping the feed-item ID can be used or something.. Just ignorant of the format to use.

 

Hope that makes sense. Thanks!

Hey everyone, I have a question about the Salesforce chatter Chat tool in the bottom right. The /apex/ page shows the content, and also the chat box. But it won't show when include an iframe on my actual site.

 

I notice I can set whether it's enabled or not on the apex page code " <apex:page showChat="true" showHeader="false" sidebar="false"> ". How do I achieve this? Do I need to include some sort of apex code in the page block?

 

Our company wants to switch to using the chat in salesforce, inside of an already built interface for managing data. We're not able to use salesforce completely, so I'm creating a slideout which will show a simple view of the chatter feed, and allow use of the chat.

  • October 10, 2013
  • Like
  • 0

Hi All,

I am writing the follwoing standard alone java code to connect salesforce. My intention is to get data from oracle data base and update sdfc data. Using OAuth authentication.

 

import java.io.IOException;
import java.net.CookiePolicy;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.params.HttpClientParams;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HTTP;

import com.sforce.ws.ConnectorConfig;

/*
Java client application to connect to IW database.
This client application uses Oauth as a Authentication mechanism.
*/
public class AF_IW_Integration 
{

private static final String redirectURL = "resttest:callback";
public static void main(String[] args) throws IOException
{
System.setProperty("proxyHost","xxxxxx");
System.setProperty("proxyPort","xxxxxxx");
HttpPost post = new HttpPost("https://cs11.salesforce.com/services/oauth2/token");

HttpClient client = new DefaultHttpClient();

List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("client_id","xxxxxx"));
params.add(new BasicNameValuePair("client_secret","xxxxxxxx"));
params.add(new BasicNameValuePair("username","usernam"));
params.add(new BasicNameValuePair("password","pass+token"));
//params.add(new BasicNameValuePair("redirect_uri",redirectURL));
params.add(new BasicNameValuePair("grant_type","password"));

post.setEntity(new UrlEncodedFormEntity(params,"UTF-8"));
ResponseHandler<String> responseHandler = new BasicResponseHandler();

HttpEntity httpEntity = null;
System.out.println("Post Base URL***"+post);
try
{

String response = client.execute(post,responseHandler);
System.out.println("Http Response***"+response);
}
finally
{

}
}
}

 

 

When I try to execute the below code...I am getting the error message....

==============================================================================================

Exception in thread "main" org.apache.http.conn.HttpHostConnectException: Connection to https://cs11.salesforce.com refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1138)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1076)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1050)
at AF_IW_Integration.main(AF_IW_Integration.java:56)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 8 more

===============================================================================================

 

The proxy settings are correct. Also I can able to run the below code without any issues.

 

public static void main(String[] args) {

ConnectorConfig config = new ConnectorConfig();
config.setUsername(USERNAME);
config.setPassword(PASSWORD);
config.setProxy("proxy.cognizant.com", 6050);
config.setAuthEndpoint("https://login.salesforce.com/services/Soap/c/26.0");
try {

// connect to the salesforce instance
connection = Connector.newConnection(config);

// display some current settings
System.out.println("Auth EndPoint: " + config.getAuthEndpoint());
System.out.println("Service EndPoint: " + config.getServiceEndpoint());
System.out.println("Username: " + config.getUsername());
System.out.println("SessionId: " +config.getSessionId());

}

 

Any help is greatly appreciated.

 

 

Thanks,

Indy.

  • August 30, 2013
  • Like
  • 0

Heya! Got a quick question. It has probably been answered too.

 

We have a widget calling feeds and it uses the username, password, and secret key to log in and grab the access_token.

I've got a "View and Comment" link to send the user to the /ID of the post and see the comments, etc. When you click that, salesforce asks the user to log in a second time.

How do I prevent it from asking me to log in a second time? Like, get access using the username/password/secret or access_token? Even if it's just for that post.

 

Any ideas?

  • August 28, 2013
  • Like
  • 0

Is this possible? I'd like to use the chat feature Chatter has on my own site. If I can embed the tab into my own app just as it is in chatter, without having to code all of it myself and use the api, that would be awesome.

 

Has anyone seen this done?

Greetings, I'm wondering if someone can explain how this works. I'm calling feed-items from a specific group and I'd like to redirect the user of the app I'm building to the specific group page or feed-item page on clicking the text (if there is one for individual feed items).

 

I get things back like   "url" : "/services/data/v23.0/chatter/feed-items/0D5C0000017QoVpKAK", but I'm not sure how to format that so it loads the chatter site for the user. Using the instance_url and then that url section doesn't work, but I'm hoping the feed-item ID can be used or something.. Just ignorant of the format to use.

 

Hope that makes sense. Thanks!

We're using the Chatter API and pulling a feed into our application.

 

We are retrieving the image URL from the Chatter API feed response and attempting to display it in the web app.  The detail from our HTTP XHR traffic analyzer is showing a 302 Found HTTP response but the following message is also showing and the profile photo of each user is missing,

 

Resource interpreted as Image but transferred with MIME type text/html: "https://na8.salesforce.com/content/session?url=https%3A%2F%2Fc.na8.content.force.com%2Fprofilephoto%2F729C0000000DXXXXX".

 

The login to the SFDC site/portal itself is timedout but we refresh the API token for the Chatter API calls and the photos don't show.

 

Can anyone offer an explanation for why this is happening? Or what the solution might be? 

Hello, I have a Partner portal and a Customer portal in my developer's org. How can I redirect from the partner portal to the customer portal without re-login or how can I establish a  SSO (Single Sign On) between these two portals within the same org.