Could you please help in the integration of PRPC with Likedin, Facebook and Twitter? I have been facing issue while authorizing the Linkedin account. It is being redirected to TomCat server site. Also,
Whenever i am running the pyConnectSocialNetwork activity i am getting Linkedin login url but after login into account and click on access it is redirecting to Tomcat server.
And in tracer the error message shows this
Unable to open an instance using the given inputs: pxObjClass = "Data-Admin-Security-OAuth-Client-AccessToken", pyConsumerKey = "759sx0do56zdsw", pyUserIdentifier = "892007"
If we are trying to implement SSO (Single Sign On) for our application with any social networking sites we need to follow below steps.
1. We need to register our Application in their respected Social networking site's developer potal.
2. Once you get registered it will generate an AccessToken for your application. When you get the AccessToken, when ever your are trying to login with any Social networking site like Facebook, Google+ etc, that time it checks your AccessToken, based on the AccessToken it will provide you login page.
3. Once you get logged in to with its credentials, it will generate a json response to you with AuthToken.
4. Based on the AuthToken we will get the client credentials.
I have done integration with facebook and as per the update in 2015. facebook no more defaults the app permissions for every user.so,you need to submit a request and proof that your application doesn't post information automatically.( i think you're familiar with Bot concept) if not it is a program which is automated to post on behalf of you on a particular platform. so facebook is not possible unless you're having an app registered in Facebook in 2014 or Earlier.
Linkedin has an issue where it is authenticationg and running PySocialConnect and the other immediately.without waiting for one to complete.
As far as i know Linkedin's issue is fixed in 7.2
Two issues here:
You cannot call both pyConnectSocialNetwork and pyGetOAuthResource from the same activity. This should be performed in two steps. CallpyConnectSocialNetwork activity first. This will authenticate and authorize the user and obtain access token. This involves an asynchronous step. Unless this step is complete, you cannot call pyGetOAuthResource. The way you have written, pyGetOAuthResource would get called as soon as pyConnectSocialNetworkfinishes its task, which is to launch LinkedIn popup challenging user for credentials.
You didn't mention which version of Pega you are using. But from screenshot 7, this looks like a known issue that was fixed in 7.2. You can perform this local change.
In step 4 of Data-Admin-Security-OAuth-Client.pyGetRequestToken activity, after the following line: