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.
var rpxJsHost = (("https:" == document.location.protocol) ? "https://" : "http://static.");
document.write(unescape("%3Cscript src='" + rpxJsHost +
RPXNOW.overlay = true;
RPXNOW.language_preference = 'en';
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 In
I 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:
The token value you extracted above
* 3) Parse the response and extract the identifier. Here's a sample JSON response:
'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 http://harlaninstitute.org/home/