Help integrating facebook connect w/ RPXnow
-
Hey everyone,
I am trying to get my wordpress blog to have the facebook connect feature using RPXnow.com (currently janrain.com). In the sample code generator, it instructed me to put the following code before the </body> tag. (i put it just below the footer where the body tag ends.
<script type=”text/javascript”>
var rpxJsHost = ((“https:” == document.location.protocol) ? “https://” : “https://static.”);
document.write(unescape(“%3Cscript src='” + rpxJsHost +
“rpxnow.com/js/lib/rpx.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
RPXNOW.overlay = true;
RPXNOW.language_preference = ‘en’;
</script>It next generated the code to put on each of my pages to display the button.
<a class=”rpxnow” onclick=”return false;”
href=”https://harlaninstitute.rpxnow.com/openid/v2/signin?token_url=http%3A%2F%2Fharlaninstitute.org%2Fhome”> Sign InI put the above code on the HTML visual editor side of the wordpress blog.
Next it displayed me the following page:————–
Users are redirected to the token URL you specified in the previous step.
Pass the token to the Janrain API to get the authentication information.
Your token URL implementation should do the following:* 1) Extract the token parameter from the POST data.
* 2) Use the token to make the auth_info API call:
URL: https://rpxnow.com/api/v2/auth_info
Parameters:apiKey
83c980d95a2ba47b2997f0cbc4d7d14f3696bb35
token
The token value you extracted above* 3) Parse the response and extract the identifier. Here’s a sample JSON response:
{
‘stat’: ‘ok’,
‘profile’: {
‘identifier’: ‘https://user.myopenid.com/’,
’email’: ‘[email protected]’,
‘preferredUsername’: ‘Joe User’
}
}
——————————————-This is where i am lost, as i have minimal experience in coding outside of C++ (and have only had one class going up to arrays). Any advice as to how to set this up would be greatly appreciated.
The wordpress im trying to integrate is https://harlaninstitute.org/home/
Thanks!
- The topic ‘Help integrating facebook connect w/ RPXnow’ is closed to new replies.